1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

reorder restore step

This commit is contained in:
yalh76 2020-07-29 00:46:53 +02:00
parent f19243c0e1
commit 4d8c7deb6a

View file

@ -77,6 +77,14 @@ ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R "$app":"$app" $final_path
#=================================================
# CREATE LOG FOLDER
#=================================================
ynh_script_progression --message="Creating log folder..."
mkdir -p "/var/log/$app"
chown -R "$app":"$app" "/var/log/$app"
#=================================================
# SPECIFIC RESTORATION
#=================================================
@ -118,14 +126,6 @@ ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started plume"
#=================================================
# CREATE LOG FOLDER
#=================================================
ynh_script_progression --message="Creating log folder..."
mkdir -p "/var/log/$app"
chown -R "$app":"$app" "/var/log/$app"
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================