2023-11-04 17:40:09 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "$#" = "0" ]; then
|
|
|
|
echo "Usage set-status.sh [new-status]"
|
|
|
|
echo ""
|
|
|
|
echo "[new-status] can be \"opened\" or \"closed\""
|
|
|
|
echo ""
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "opened" ]; then
|
2023-11-08 19:07:28 +01:00
|
|
|
ln -sf "index.ouvert.html" "/var/www/html/index.html"
|
2023-11-04 17:40:09 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "closed" ]; then
|
2023-11-08 19:07:28 +01:00
|
|
|
ln -sf "index.fermé.html" "/var/www/html/index.html"
|
2023-11-08 19:09:05 +01:00
|
|
|
fi
|