1
0
Fork 0
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:
Pierre Bourré 2019-04-16 00:01:12 +02:00
parent b84f8fa5af
commit 7f594957bf
5 changed files with 10 additions and 0 deletions

View file

@ -2031,3 +2031,5 @@ nginx['listen_https'] = false
# handler: 'failover_pgbouncer' # handler: 'failover_pgbouncer'
# } # }
# } # }
from_file '/etc/gitlab/gitlab-persistent.rb'

View file

@ -62,6 +62,7 @@ ynh_print_info "Backuping configuration files of Gitlab..."
ynh_backup "$config_path/gitlab-secrets.json" ynh_backup "$config_path/gitlab-secrets.json"
ynh_backup "$config_path/gitlab.rb" ynh_backup "$config_path/gitlab.rb"
ynh_backup "$config_path/gitlab-persistent.rb"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -122,6 +122,9 @@ ynh_print_info "Preconfigure gitlab..."
mkdir -p $config_path 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" cp -f ../conf/gitlab.rb "$config_path/gitlab.rb"
ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+") ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+")

View file

@ -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-secrets.json"
ynh_restore_file "$config_path/gitlab.rb" ynh_restore_file "$config_path/gitlab.rb"
ynh_restore_file "$config_path/gitlab-persistent.rb"
#================================================= #=================================================
# RESTORE THE APP MAIN DIR # RESTORE THE APP MAIN DIR

View file

@ -207,6 +207,9 @@ then
ynh_store_file_checksum "$config_path/gitlab.rb" ynh_store_file_checksum "$config_path/gitlab.rb"
fi fi
touch "$config_path/gitlab-persistent.rb"
chown admin: "$config_path/gitlab-persistent.rb"
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================