diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-31 09:45:56 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-09-02 00:32:16 +0300 |
commit | 009c82e6cfb82cc40c49a9e253fe41bbbf779b13 (patch) | |
tree | 8213b20f68cfbe2941013eef540ec95a379bfb02 /etc/nextcloudpi-config.d/no-ip.sh | |
parent | cfc759969a9f0afdde35689e7185d49533e6c78f (diff) |
shellcheck style fixesv0.24.12
Diffstat (limited to 'etc/nextcloudpi-config.d/no-ip.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/no-ip.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/nextcloudpi-config.d/no-ip.sh b/etc/nextcloudpi-config.d/no-ip.sh index 118aeeb8..928e139b 100644 --- a/etc/nextcloudpi-config.d/no-ip.sh +++ b/etc/nextcloudpi-config.d/no-ip.sh @@ -36,7 +36,7 @@ install() mkdir /tmp/noip && cd /tmp/noip wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz tar vzxf noip-duc-linux.tar.gz - cd -; cd $OLDPWD/noip-2* + cd -; cd "$OLDPWD"/noip-2* make cp noip2 /usr/local/bin/ @@ -70,12 +70,12 @@ configure() ping -W 2 -w 1 -q github.com &>/dev/null || { echo "No internet connectivity"; return 1; } - /usr/local/bin/noip2 -C -c /usr/local/etc/no-ip2.conf -U $TIME_ -u $USER_ -p $PASS_ || return 1 + /usr/local/bin/noip2 -C -c /usr/local/etc/no-ip2.conf -U "$TIME_" -u "$USER_" -p "$PASS_" || return 1 update-rc.d noip2 enable service noip2 restart cd /var/www/nextcloud - sudo -u www-data php occ config:system:set trusted_domains 3 --value=$DOMAIN_ - sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://$DOMAIN_ + sudo -u www-data php occ config:system:set trusted_domains 3 --value="$DOMAIN_" + sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://"$DOMAIN_" } cleanup() |