mirror of
https://github.com/YunoHost-Apps/grav_ynh.git
synced 2024-09-03 19:16:01 +02:00
Accolade sur les variables
This commit is contained in:
parent
5df0384e3f
commit
5cc3bcd1d8
1 changed files with 8 additions and 7 deletions
|
@ -16,13 +16,13 @@ path=$(ynh_app_setting_get $app path)
|
|||
is_public=$(ynh_app_setting_get $app is_public)
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||
sudo yunohost app checkurl "${domain}${path}" -a "${app}" \
|
||||
|| ynh_die "Path not available: ${domain}${path}"
|
||||
|
||||
# Check $final_path
|
||||
final_path="/var/www/${app}"
|
||||
if [ -d $final_path ]; then
|
||||
ynh_die "There is already a directory: $final_path"
|
||||
ynh_die "There is already a directory: ${final_path}"
|
||||
fi
|
||||
|
||||
# Check configuration files nginx
|
||||
|
@ -42,18 +42,19 @@ if [ -f $phpfpm_ini ]; then
|
|||
fi
|
||||
|
||||
# Restore sources & data
|
||||
sudo cp -a ./sources "$final_path"
|
||||
sudo cp -a ./sources "${final_path}"
|
||||
|
||||
# Set permissions
|
||||
sudo chown -R www-data: "$final_path"
|
||||
sudo chown -R www-data: "${final_path}"
|
||||
|
||||
# Restore nginx configuration files
|
||||
sudo cp -a ./nginx.conf "$nginx_conf"
|
||||
sudo cp -a ./nginx.conf "${nginx_conf}"
|
||||
# Restore php-fpm configuration files
|
||||
sudo cp -a ./php-fpm.conf "$phpfpm_conf"
|
||||
sudo cp -a ./php-fpm.ini "$phpfpm_ini"
|
||||
sudo cp -a ./php-fpm.conf "${phpfpm_conf}"
|
||||
sudo cp -a ./php-fpm.ini "${phpfpm_ini}"
|
||||
|
||||
# Reload services
|
||||
sudo service nginx reload
|
||||
sudo service php5-fpm reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
||||
|
|
Loading…
Reference in a new issue