diff --git a/conf/lstu-minion@.service b/conf/lstu-minion@.service index 7363924..44ffa4e 100644 --- a/conf/lstu-minion@.service +++ b/conf/lstu-minion@.service @@ -4,7 +4,7 @@ Documentation=https://framagit.org/luc/lstu [Service] Type=forking -User=www-data +User=__APP__ WorkingDirectory=__FINALPATH__ ExecStart=/usr/bin/carton exec script/application minion worker diff --git a/scripts/install b/scripts/install index 28422c1..7549132 100644 --- a/scripts/install +++ b/scripts/install @@ -117,7 +117,7 @@ ynh_system_user_create --username=$app #================================================= # CONFIGURE LSTU #================================================= -ynh_script_progression --message="Configuring lstu..." +ynh_script_progression --message="Configuring Lstu..." config="${final_path}/lstu.conf" cp ../conf/lstu.conf.template "$config" @@ -143,7 +143,7 @@ ynh_store_file_checksum --file="$config" #================================================= # INSTALL LSTU #================================================= -ynh_script_progression --message="Installing lstu..." +ynh_script_progression --message="Installing Lstu..." pushd $final_path carton install --deployment --without=sqlite --without=mysql @@ -165,7 +165,7 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." # Set permissions to app files -chown -R $app $final_path +chown -R $app: $final_path #================================================= # SETUP LOGROTATE diff --git a/scripts/upgrade b/scripts/upgrade index f9bffde..bc04e31 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -225,13 +225,6 @@ chown -R $app: $final_path #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --log "/var/log/$app.log" --log "/var/www/$app/log/production.log" - -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." - yunohost service add $app --log="/var/log/$app.log" --log="/var/www/$app/log/production.log" #=================================================