1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

fix restore

This commit is contained in:
Pierre Bourré 2018-12-25 20:08:49 +01:00
parent c85da39795
commit 67616b6421

View file

@ -60,6 +60,9 @@ ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_install_app_dependencies openssh-server ynh_install_app_dependencies openssh-server
ynh_restore_file "$config_path/gitlab-secrets.json"
ynh_restore_file "$config_path/gitlab.rb"
setup_source $architecture setup_source $architecture
ynh_restore_file "/var/opt/$app/backups/" ynh_restore_file "/var/opt/$app/backups/"
@ -77,8 +80,5 @@ last_backup="${filename%_gitlab_backup.tar}"
# Use gitlab-rake to backup # Use gitlab-rake to backup
gitlab-rake gitlab:backup:restore force=yes BACKUP=$last_backup gitlab-rake gitlab:backup:restore force=yes BACKUP=$last_backup
ynh_restore_file "$config_path/gitlab-secrets.json"
ynh_restore_file "$config_path/gitlab.rb"
gitlab-ctl restart gitlab-ctl restart
gitlab-rake gitlab:check SANITIZE=true gitlab-rake gitlab:check SANITIZE=true