mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Remove unwanted script
This commit is contained in:
parent
8a1b1ecd90
commit
f76f14d51c
2 changed files with 9 additions and 6 deletions
|
@ -175,11 +175,12 @@ chown -R $app:$app /var/log/$app
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up database and settings..." --weight=5
|
ynh_script_progression --message="Setting up database and settings..." --weight=5
|
||||||
#we need to start and stop the service so that initial app.db file is created and that we can set default data
|
#we need to start and stop the service so that initial app.db file is created and that we can set default data
|
||||||
ynh_systemd_action
|
ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" --log_path="$final_path/calibre-web.log" -t 20
|
||||||
|
|
||||||
#sleep required on low spec like raspberryPi
|
#sleep required on low spec like raspberryPi
|
||||||
sleep 5s
|
sleep 2s
|
||||||
ynh_systemd_action -a stop
|
#remove unwanted calibre-web.log
|
||||||
|
ynh_secure_remove --file="$final_path/calibre-web.log"
|
||||||
|
ynh_systemd_action --service_name=$app --action="stop"
|
||||||
|
|
||||||
|
|
||||||
#set database settings as per conf file
|
#set database settings as per conf file
|
||||||
|
@ -233,7 +234,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reload nginx and start $app..." --weight=5
|
ynh_script_progression --message="Reload nginx and start $app..." --weight=5
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
ynh_systemd_action --service_name=$app --action=start -l "server on :$port" -t 20
|
ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 20
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -175,7 +175,9 @@ else
|
||||||
ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 20
|
ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" -t 20
|
||||||
fi
|
fi
|
||||||
#sleep required on low spec like raspberryPi
|
#sleep required on low spec like raspberryPi
|
||||||
sleep 3s
|
sleep 2s
|
||||||
|
#remove unwanted calibre-web.log
|
||||||
|
ynh_secure_remove --file="$final_path/calibre-web.log"
|
||||||
ynh_systemd_action --service_name=$app --action="stop"
|
ynh_systemd_action --service_name=$app --action="stop"
|
||||||
|
|
||||||
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))), $(. <(echo -E echo $(<../conf/init_calibre_db_ldap_settings))) WHERE ID=1\""
|
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))), $(. <(echo -E echo $(<../conf/init_calibre_db_ldap_settings))) WHERE ID=1\""
|
||||||
|
|
Loading…
Add table
Reference in a new issue