aboutsummaryrefslogtreecommitdiff
path: root/scripts/ynh_add_swap
diff options
context:
space:
mode:
authoreric_G <46165813+ericgaspar@users.noreply.github.com>2025-09-17 16:29:46 +0200
committerGitHub <noreply@github.com>2025-09-17 16:29:46 +0200
commitc2e28fb47626fca1b6fbd00796a94f5f290435d2 (patch)
treefeddac1f0e09ad08d62ac7f30cc552daa585629a /scripts/ynh_add_swap
parent018c0445962016d9dac1d181cea8102ba89c075e (diff)
parentb4b6e4d3b16a33a5de8d9b6b4fd37ab3cdc32da9 (diff)
downloadmastodon_ynh-c2e28fb47626fca1b6fbd00796a94f5f290435d2.tar.gz
mastodon_ynh-c2e28fb47626fca1b6fbd00796a94f5f290435d2.tar.bz2
mastodon_ynh-c2e28fb47626fca1b6fbd00796a94f5f290435d2.zip
Merge pull request #520 from YunoHost-Apps/testing
Testing
Diffstat (limited to 'scripts/ynh_add_swap')
-rw-r--r--scripts/ynh_add_swap4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ynh_add_swap b/scripts/ynh_add_swap
index aa82c51..f99e1a7 100644
--- a/scripts/ynh_add_swap
+++ b/scripts/ynh_add_swap
@@ -22,14 +22,14 @@ ynh_add_swap () {
# Can't swap inside an LXD
if [ "$(systemd-detect-virt)" == "lxc" ]
then
- ynh_print_warn --message="You are inside a LXC container, swap will not be added, but that can cause troubles for the app $app. Please make sure you have more than 2.5G available RAM."
+ ynh_print_warn "You are inside a LXC container, swap will not be added, but that can cause troubles for the app $app. Please make sure you have more than 2.5G available RAM."
return
fi
# Swap on SD card only if it's is specified
if ynh_is_main_device_a_sd_card && [ "$SD_CARD_CAN_SWAP" == "0" ]
then
- ynh_print_warn --message="The main mountpoint of your system '/' is on an SD card, swap will not be added to prevent some damage of this one, but that can cause troubles for the app $app. If you still want activate the swap, you can relaunch the command preceded by 'SD_CARD_CAN_SWAP=1'"
+ ynh_print_warn "The main mountpoint of your system '/' is on an SD card, swap will not be added to prevent some damage of this one, but that can cause troubles for the app $app. If you still want activate the swap, you can relaunch the command preceded by 'SD_CARD_CAN_SWAP=1'"
return
fi