mirror of
https://github.com/YunoHost-Apps/lstu_ynh.git
synced 2024-09-03 19:36:12 +02:00
Fix
This commit is contained in:
parent
e344b0dee6
commit
ff6f62afa6
3 changed files with 4 additions and 11 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue