1
0
Fork 0
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:
frju365 2018-06-10 10:42:04 +02:00 committed by GitHub
parent ff47bc5383
commit f141661843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#================================================= #=================================================