Fix upgrade/restore script
This commit is contained in:
@@ -48,14 +48,14 @@ if ! $upgrade; then
|
||||
echo "ERROR: Only printable ASCII characters are permitted in your password (WPA2 passphrase)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl ${domain}${url_path} -a hotspot
|
||||
if [ ! $? -eq 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl ${domain}${url_path} -a hotspot
|
||||
if [ ! $? -eq 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install packages
|
||||
packages='php5-fpm sipcalc hostapd iptables iw dnsmasq'
|
||||
@@ -134,10 +134,6 @@ if ! $upgrade; then
|
||||
|
||||
fi
|
||||
|
||||
# Save git commit
|
||||
gitcommit=$(git rev-parse HEAD)
|
||||
sudo yunohost app setting hotspot gitcommit -v "${gitcommit}"
|
||||
|
||||
# Install custom scripts
|
||||
sudo install -o root -g root -m 0755 ../conf/iw_multissid /usr/local/bin/
|
||||
sudo install -o root -g root -m 0755 ../conf/iw_devices /usr/local/bin/
|
||||
|
||||
Reference in New Issue
Block a user