Ugly patch to force resize2fs when logging in for the first time

This commit is contained in:
Alexandre Aubin 2018-08-25 00:30:59 +02:00
parent 0bf50b0def
commit 29e5455f03

View file

@ -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')