1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00
This commit is contained in:
Krakinou 2019-05-21 00:20:22 +02:00
parent 5f1c35370e
commit eb6375fe44

View file

@ -56,18 +56,17 @@ ynh_app_setting_set $app final_path $final_path
#================================================= #=================================================
ynh_print_info "Installing dependencies" ynh_print_info "Installing dependencies"
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
sleep 1s
#install locale (nginx will restart at the end of the install) #install locale (nginx will restart at the end of the install)
for i in $lang ; do for i in $lang ; do
ynh_replace_string "# $i" "$i" /etc/locale.gen ynh_replace_string "# $i" "$i" /etc/locale.gen
done done
sleep 1s
locale-gen locale-gen
#================================================= #=================================================
#INSTALL SOURCES #INSTALL SOURCES
#=============================================== #===============================================
# Copy source files
ynh_print_info "Downloading sources to $final_path" ynh_print_info "Downloading sources to $final_path"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
@ -148,8 +147,10 @@ then
ynh_app_setting_set $app unprotected_uris "/" ynh_app_setting_set $app unprotected_uris "/"
fi fi
# Restart services #=================================================
systemctl reload nginx # RELOAD SERVICES
systemctl reload postfix #=================================================
ynh_systemd_action --service_name=nginx --action=reload
ynh_systemd_action --service_name=postfix --action=reload
service php* reload service php* reload