From 8c68673d8567f0534cadbbc9f92ba26396363131 Mon Sep 17 00:00:00 2001 From: wiki Date: Thu, 26 Feb 2015 05:11:53 +0000 Subject: These changes were sitting here --- FunnyQuestion.conf.php.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'FunnyQuestion.conf.php.sh') 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 %s?' 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" -- cgit v1.2.2