diff options
author | wiki <wiki@parabola.nu> | 2015-02-26 05:11:53 +0000 |
---|---|---|
committer | wiki <wiki@parabola.nu> | 2015-02-26 05:13:14 +0000 |
commit | 8c68673d8567f0534cadbbc9f92ba26396363131 (patch) | |
tree | 7a56c8618c1da2c4d5d072f062d07ea51fd77a5a /FunnyQuestion.conf.php.sh | |
parent | b0e5922cdadff2b394100dc8977bc2d526c04595 (diff) |
These changes were sitting here
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" |