From 29e5455f030ccac6f3c78d85f9fb133cf5346f51 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 25 Aug 2018 00:30:59 +0200 Subject: [PATCH] Ugly patch to force resize2fs when logging in for the first time --- .../files/check_yunohost_is_installed.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stage3/00-install-yunohost/files/check_yunohost_is_installed.sh b/stage3/00-install-yunohost/files/check_yunohost_is_installed.sh index 45cdf00..d1e6cea 100644 --- a/stage3/00-install-yunohost/files/check_yunohost_is_installed.sh +++ b/stage3/00-install-yunohost/files/check_yunohost_is_installed.sh @@ -1,6 +1,13 @@ #!/bin/sh if [ -n "$BASH_VERSION" ] && [ "$-" != "${-#*i}" ]; then + + # Trigger resize2fs_once in case it wasnt triggered so far ... + if [ -f "/etc/init.d/resize2fs_once" ]; + then + systemctl restart resize2fs_once + fi + if [ ! -f "/etc/yunohost/installed" ]; then normal=$(printf '\033[0m')