1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lstu_ynh.git synced 2024-09-03 19:36:12 +02:00
This commit is contained in:
ericgaspar 2020-12-08 17:31:59 +01:00
parent e344b0dee6
commit ff6f62afa6
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 4 additions and 11 deletions

View file

@ -4,7 +4,7 @@ Documentation=https://framagit.org/luc/lstu
[Service] [Service]
Type=forking Type=forking
User=www-data User=__APP__
WorkingDirectory=__FINALPATH__ WorkingDirectory=__FINALPATH__
ExecStart=/usr/bin/carton exec script/application minion worker ExecStart=/usr/bin/carton exec script/application minion worker

View file

@ -117,7 +117,7 @@ ynh_system_user_create --username=$app
#================================================= #=================================================
# CONFIGURE LSTU # CONFIGURE LSTU
#================================================= #=================================================
ynh_script_progression --message="Configuring lstu..." ynh_script_progression --message="Configuring Lstu..."
config="${final_path}/lstu.conf" config="${final_path}/lstu.conf"
cp ../conf/lstu.conf.template "$config" cp ../conf/lstu.conf.template "$config"
@ -143,7 +143,7 @@ ynh_store_file_checksum --file="$config"
#================================================= #=================================================
# INSTALL LSTU # INSTALL LSTU
#================================================= #=================================================
ynh_script_progression --message="Installing lstu..." ynh_script_progression --message="Installing Lstu..."
pushd $final_path pushd $final_path
carton install --deployment --without=sqlite --without=mysql carton install --deployment --without=sqlite --without=mysql
@ -165,7 +165,7 @@ ynh_add_systemd_config
ynh_script_progression --message="Securing files and directories..." ynh_script_progression --message="Securing files and directories..."
# Set permissions to app files # Set permissions to app files
chown -R $app $final_path chown -R $app: $final_path
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE

View file

@ -225,13 +225,6 @@ chown -R $app: $final_path
#================================================= #=================================================
ynh_script_progression --message="Integrating 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"
#=================================================
# 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" yunohost service add $app --log="/var/log/$app.log" --log="/var/www/$app/log/production.log"
#================================================= #=================================================