mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
track all upgrades in separate file
This commit is contained in:
parent
41fb54152b
commit
ecfdd4a5e6
4 changed files with 14 additions and 9 deletions
|
@ -61,7 +61,7 @@ remove_config_gitlab() {
|
|||
# UPDATE SOURCES FILES
|
||||
#=================================================
|
||||
update_src_version() {
|
||||
source ./upgrade.d/upgrade.sh
|
||||
source ./upgrade.d/upgrade.last.sh
|
||||
cp ../conf/arm.src.default ../conf/arm.src
|
||||
ynh_replace_string "__VERSION__" "$gitlab_version" "../conf/arm.src"
|
||||
ynh_replace_string "__SHA256_SUM__" "$gitlab_arm_source_sha256" "../conf/arm.src"
|
||||
|
|
|
@ -6,19 +6,22 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# Get the _common.sh file if it's not in the current directory
|
||||
cp ../settings/scripts/_common.sh ./_common.sh
|
||||
mkdir ./upgrade.d
|
||||
mkdir ../conf
|
||||
cp ../settings/scripts/upgrade.d/upgrade.sh ./upgrade.d/upgrade.sh
|
||||
cp ../settings/scripts/upgrade.d/*.sh ./upgrade.d/*.sh
|
||||
cp ../settings/conf/*.default ../conf/
|
||||
chmod a+rx _common.sh upgrade.d/upgrade.sh
|
||||
chmod a+rx _common.sh upgrade.d/*.sh
|
||||
fi
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Load common variables and helpers
|
||||
source _common.sh
|
||||
|
||||
|
@ -32,9 +35,6 @@ ynh_clean_setup () {
|
|||
true
|
||||
}
|
||||
|
||||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
|
5
scripts/upgrade.d/upgrade.11.6.3.sh
Normal file
5
scripts/upgrade.d/upgrade.11.6.3.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
gitlab_version="11.6.3"
|
||||
|
||||
gitlab_x86_64_source_sha256="5a990a76c1656ddd42673562d8bd1be106a835331a2ce976d405c536a5567485"
|
||||
|
||||
gitlab_arm_source_sha256="3b1d1c650df8722d0b63b5db3e6c2440ea70224deeca0621a9c5226a06079d2e"
|
Loading…
Reference in a new issue