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

reorder steps

This commit is contained in:
yalh76 2020-02-23 20:32:59 +01:00
parent 0feb81f68a
commit dec461fe7d

View file

@ -105,6 +105,14 @@ ynh_print_info --message="Restoring the systemd configuration..."
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service
#=================================================
# CREATE LOG FOLDER
#=================================================
ynh_print_info --message="creating log folder..."
mkdir -p "/var/log/$app"
chown -R "$app":"$app" "/var/log/$app"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
@ -119,14 +127,6 @@ ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started plume"
#=================================================
# CREATE LOG FOLDER
#=================================================
ynh_print_info --message="creating log folder..."
mkdir -p "/var/log/$app"
chown -R "$app":"$app" "/var/log/$app"
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================