1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

try to make better check_packages dependencies

This commit is contained in:
Robles Rodolphe 2020-04-07 16:12:46 +02:00
parent 274ae1af70
commit a8bb3d1711
3 changed files with 6 additions and 7 deletions

View file

@ -6,7 +6,7 @@
; Checks
pkg_linter=1
setup_sub_dir=1
setup_root=1
setup_root=0
setup_nourl=0
setup_private=1
setup_public=1

View file

@ -80,6 +80,8 @@ then
mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf
# Store file checksum for the new config file location
ynh_store_file_checksum "/etc/nginx/conf.d/$new_domain.d/$app.conf"
# ynh_replace_string
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
fi
# GENERIC FINALISATION

View file

@ -71,12 +71,9 @@ chown -R $app:$app $final_path
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
if [ "$(lsb_release --codename --short)" != "jessie" ]
then
ynh_restore_file --origin_path="/etc/php/7.0/fpm/pool.d/$app.conf"
else
ynh_die --message="Votre version de Debian n'est pas compatible..."
fi
ynh_script_progression --message="Restore php-fpm configuration..." --time --weight=1
ynh_restore_file --origin_path="/etc/php/7.0/fpm/pool.d/$app.conf"
#=================================================
# SPECIFIC RESTORATION