mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Update scripts/install
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
63e6a0aecc
commit
38449a4bb4
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ swap_needed=0
|
|||
|
||||
if [ $total_memory -lt $memory_needed ]; then
|
||||
# Need a minimum of memory
|
||||
if [ "$(systemd-detect-virt)" == "none" ]; then
|
||||
if [ "$(systemd-detect-virt)" != "lxc" ]; then
|
||||
swap_needed=$(($memory_needed - $total_memory))
|
||||
ynh_script_progression --message="Adding $swap_needed Mo to swap..."
|
||||
ynh_add_swap --size=$swap_needed
|
||||
|
|
Loading…
Add table
Reference in a new issue