Ugly patch to force resize2fs when logging in for the first time
This commit is contained in:
parent
0bf50b0def
commit
29e5455f03
1 changed files with 7 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue