mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Update restore
This commit is contained in:
parent
72b8c46f37
commit
4779466e97
1 changed files with 8 additions and 15 deletions
|
@ -84,21 +84,6 @@ dbpass=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||||
ynh_mysql_setup_db --db_user=$dbuser --db_name=$dbname --db_pwd=$dbpass
|
ynh_mysql_setup_db --db_user=$dbuser --db_name=$dbname --db_pwd=$dbpass
|
||||||
ynh_mysql_connect_as --user=$dbuser --password=$dbpass --database=$dbname < ./db.sql
|
ynh_mysql_connect_as --user=$dbuser --password=$dbpass --database=$dbname < ./db.sql
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE VARIOUS FILES
|
|
||||||
#=================================================
|
|
||||||
#ynh_script_progression --message="Restoring various files..." --weight=1
|
|
||||||
|
|
||||||
#ynh_restore_file --origin_path="/var/log/$app"
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
|
||||||
systemctl enable $app.service --quiet
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -111,6 +96,14 @@ chmod u=rwX,g=rX,o= "$final_path"
|
||||||
chmod u=rwX,g=rX,o= "/home/$app"
|
chmod u=rwX,g=rX,o= "/home/$app"
|
||||||
#chmod u=rwX,g=rX,o= "/var/log/$app"
|
#chmod u=rwX,g=rX,o= "/var/log/$app"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE SYSTEMD
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE LOGROTATE CONFIGURATION
|
# RESTORE THE LOGROTATE CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue