mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Add gitlab-persistent.rb file
This commit is contained in:
parent
b84f8fa5af
commit
7f594957bf
5 changed files with 10 additions and 0 deletions
|
@ -2031,3 +2031,5 @@ nginx['listen_https'] = false
|
|||
# handler: 'failover_pgbouncer'
|
||||
# }
|
||||
# }
|
||||
|
||||
from_file '/etc/gitlab/gitlab-persistent.rb'
|
|
@ -62,6 +62,7 @@ ynh_print_info "Backuping configuration files of Gitlab..."
|
|||
|
||||
ynh_backup "$config_path/gitlab-secrets.json"
|
||||
ynh_backup "$config_path/gitlab.rb"
|
||||
ynh_backup "$config_path/gitlab-persistent.rb"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
|
@ -122,6 +122,9 @@ ynh_print_info "Preconfigure gitlab..."
|
|||
|
||||
mkdir -p $config_path
|
||||
|
||||
touch "$config_path/gitlab-persistent.rb"
|
||||
chown admin: "$config_path/gitlab-persistent.rb"
|
||||
|
||||
cp -f ../conf/gitlab.rb "$config_path/gitlab.rb"
|
||||
ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+")
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@ ynh_print_info "Restoring configuration files of Gitlab..."
|
|||
|
||||
ynh_restore_file "$config_path/gitlab-secrets.json"
|
||||
ynh_restore_file "$config_path/gitlab.rb"
|
||||
ynh_restore_file "$config_path/gitlab-persistent.rb"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE APP MAIN DIR
|
||||
|
|
|
@ -207,6 +207,9 @@ then
|
|||
ynh_store_file_checksum "$config_path/gitlab.rb"
|
||||
fi
|
||||
|
||||
touch "$config_path/gitlab-persistent.rb"
|
||||
chown admin: "$config_path/gitlab-persistent.rb"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue