diff options
Diffstat (limited to 'FunnyQuestion.conf.php.sh')
-rwxr-xr-x | FunnyQuestion.conf.php.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FunnyQuestion.conf.php.sh b/FunnyQuestion.conf.php.sh index d280e3de..1ca39d1a 100755 --- a/FunnyQuestion.conf.php.sh +++ b/FunnyQuestion.conf.php.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +IP=$(realpath "$(dirname "$0")") + cmd="date -u +%V\`uname\`|sha256sum|sed 's/\W//g'" answer="$(eval "$cmd")" @@ -18,6 +20,6 @@ prompts[en]='What is the output of the command <tt>%s</tt>?' echo echo ');' -} > /srv/http/wiki/FunnyQuestion.conf.php +} > "$IP/FunnyQuestion.conf.php" -touch /srv/http/wiki/extensions/FunnyQuestion/FunnyQuestion.i18n.php +touch "$IP/extensions/FunnyQuestion/FunnyQuestion.i18n.php" |