[enh] review, variables, typo, syntax, fixes

- update yunohost package version dependency
- use variable for $nginx_conf
- rename $final_path to $src_path variable for data path
- other small fixes
This commit is contained in:
Moul
2016-06-13 22:25:00 +02:00
parent 16f11425a2
commit bdbe0ac79e
6 changed files with 32 additions and 34 deletions

View File

@@ -21,12 +21,12 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| ynh_die "Path not available: ${domain}${path}"
# Restore sources & data
final_path="/var/www/${app}"
sudo cp -a ./sources "$final_path"
src_path="/var/www/${app}"
sudo cp -a ./sources "$src_path"
# Restore permissions to app files
# you may need to make some file and/or directory writeable by www-data (nginx user)
sudo chown -R root:root "$final_path"
sudo chown -R root: "$src_path"
# If a MySQL database is used:
#