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:
parent
cbba241f44
commit
38cd19c3d4
3 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue