Continue true install if setup swap fail

This commit is contained in:
Josué Tille 2022-08-24 06:14:09 +02:00
parent fdf59343d6
commit a3b8824e72
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -63,7 +63,7 @@ ynh_add_swap () {
# Create the swap
mkswap /swap_$app
# And activate it
swapon /swap_$app
swapon /swap_$app || true
# Then add an entry in fstab to load this swap at each boot.
echo -e "/swap_$app swap swap defaults 0 0 #Swap added by $app" >> /etc/fstab
fi