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

swap with getops

This commit is contained in:
Kay0u 2019-05-11 01:41:46 +02:00
parent cbba241f44
commit 38cd19c3d4
3 changed files with 6 additions and 8 deletions

View file

@ -131,8 +131,8 @@ if [ $(($total_swap + $swap_needed)) -lt 2048 ]; then
swap_needed=$((2048 - $total_swap))
fi
ynh_print_info "Adding $swap_needed to swap..."
ynh_add_swap $swap_needed
ynh_script_progression --message="Adding $swap_needed Mo to swap..." --weight=1
ynh_add_swap --size=$swap_needed
#=================================================
# PRECONFIGURE GITLAB

View file

@ -64,7 +64,6 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
# ADD SWAP IF NEEDED
#=================================================
ynh_print_info "Adding swap..."
total_memory=$(ynh_check_ram)
total_swap=$(ynh_check_ram --only_swap)
@ -81,8 +80,8 @@ if [ $(($total_swap + $swap_needed)) -lt 2048 ]; then
swap_needed=$((2048 - $total_swap))
fi
ynh_print_info "Adding $swap_needed to swap..."
ynh_add_swap $swap_needed
ynh_script_progression --message="Adding $swap_needed Mo to swap..." --weight=1
ynh_add_swap --size=$swap_needed
#=================================================
# RESTORE CONF FILES

View file

@ -182,7 +182,6 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
# ADD SWAP IF NEEDED
#=================================================
ynh_print_info "Adding swap..."
total_memory=$(ynh_check_ram)
total_swap=$(ynh_check_ram --only_swap)
@ -199,8 +198,8 @@ if [ $(($total_swap + $swap_needed)) -lt 2048 ]; then
swap_needed=$((2048 - $total_swap))
fi
ynh_print_info "Adding $swap_needed to swap..."
ynh_add_swap $swap_needed
ynh_script_progression --message="Adding $swap_needed Mo to swap..." --weight=1
ynh_add_swap --size=$swap_needed
#=================================================
# PRECONFIGURE GITLAB