From 031db95c546f00321ed89dc212523f040b62b2e8 Mon Sep 17 00:00:00 2001 From: EpicKiwi Date: Wed, 8 Nov 2023 19:07:28 +0100 Subject: [PATCH] Fixed script --- status/set-status.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/status/set-status.sh b/status/set-status.sh index 821fe7f..0455713 100755 --- a/status/set-status.sh +++ b/status/set-status.sh @@ -1,7 +1,5 @@ #!/bin/bash -SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" - if [ "$#" = "0" ]; then echo "Usage set-status.sh [new-status]" echo "" @@ -11,9 +9,9 @@ if [ "$#" = "0" ]; then fi if [ "$1" = "opened" ]; then - ln -sf "index.ouvert.html" "$SCRIPTPATH/index.html" + ln -sf "index.ouvert.html" "/var/www/html/index.html" fi if [ "$1" = "closed" ]; then - ln -sf "index.fermé.html" "$SCRIPTPATH/index.html" + ln -sf "index.fermé.html" "/var/www/html/index.html" fi \ No newline at end of file