12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- set -eu
- app=$YNH_APP_INSTANCE_NAME
- source /usr/share/yunohost/helpers
- domain=$(ynh_app_setting_get "$app" domain)
- path=$(ynh_app_setting_get "$app" path)
- sudo yunohost app checkurl "${domain}${path}" -a "$app" \
- || ynh_die "Path not available: ${domain}${path}"
- src_path="/var/www/${app}"
- sudo cp -a ./sources "$src_path"
- sudo chown -R root: "$src_path"
- sudo cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
- sudo service nginx reload
|