mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
set virt detection for swap creatiom
This commit is contained in:
parent
f841059b8d
commit
e8157e08a9
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ fi
|
|||
if ynh_exec_warn_less yunohost service status "$app-sidekiq" >/dev/null
|
||||
then
|
||||
ynh_script_progression --message="Removing $app-sidekiq service integration..." --weight=1
|
||||
yunohost service remove "$app-sidekiq"
|
||||
yuhoservice remove "$app-sidekiq"
|
||||
fi
|
||||
|
||||
if ynh_exec_warn_less yunohost service status "$app-streaming" >/dev/null
|
||||
|
@ -57,7 +57,7 @@ ynh_remove_nodejs
|
|||
|
||||
# Remove swap
|
||||
ynh_del_swap
|
||||
if [ -n "$(grep 'kthreadd' /proc/2/status 2>/dev/null)" ]; then
|
||||
if [ "$(systemd-detect-virt)" != "lxc" ]; then
|
||||
|
||||
ynh_del_swap
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue