Fixed script
This commit is contained in:
parent
b7d883bd9a
commit
031db95c54
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
||||||
|
|
||||||
if [ "$#" = "0" ]; then
|
if [ "$#" = "0" ]; then
|
||||||
echo "Usage set-status.sh [new-status]"
|
echo "Usage set-status.sh [new-status]"
|
||||||
echo ""
|
echo ""
|
||||||
@ -11,9 +9,9 @@ if [ "$#" = "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "opened" ]; then
|
if [ "$1" = "opened" ]; then
|
||||||
ln -sf "index.ouvert.html" "$SCRIPTPATH/index.html"
|
ln -sf "index.ouvert.html" "/var/www/html/index.html"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "closed" ]; then
|
if [ "$1" = "closed" ]; then
|
||||||
ln -sf "index.fermé.html" "$SCRIPTPATH/index.html"
|
ln -sf "index.fermé.html" "/var/www/html/index.html"
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user