mirror of
https://github.com/YunoHost-Apps/lstu_ynh.git
synced 2024-09-03 19:36:12 +02:00
Update install
This commit is contained in:
parent
ff47bc5383
commit
f141661843
1 changed files with 9 additions and 7 deletions
|
@ -143,11 +143,20 @@ ynh_replace_string "__DBUSER__" "$db_name" "$final_path/lstu.conf"
|
||||||
secret=$(ynh_string_random 24)
|
secret=$(ynh_string_random 24)
|
||||||
ynh_replace_string "__SECRET__" "$secret" "${final_path}/lstu.conf"
|
ynh_replace_string "__SECRET__" "$secret" "${final_path}/lstu.conf"
|
||||||
|
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SETUP LOGROTATE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Use logrotate to manage application logfile(s)
|
||||||
|
ynh_use_logrotate
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Installation with Carton
|
# Installation with Carton
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
|
touch /var/log/$app/setup_carton.log
|
||||||
carton install 2>&1 | sudo tee -a "/var/log/$app/setup_carton.log"
|
carton install 2>&1 | sudo tee -a "/var/log/$app/setup_carton.log"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
@ -158,13 +167,6 @@ popd
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_systemd_config
|
ynh_systemd_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SETUP LOGROTATE
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Use logrotate to manage application logfile(s)
|
|
||||||
ynh_use_logrotate
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Make app public or private
|
# Make app public or private
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue