From 9c888ecc2018869156cb3f4ec9521977c6c1f44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9g=C3=A9?= Date: Fri, 5 Apr 2019 17:41:37 +0200 Subject: [PATCH 1/2] Ignore the presence of lost+found in a newly created FS --- content/opt/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/opt/run b/content/opt/run index 71cf6e1..5abd5d9 100644 --- a/content/opt/run +++ b/content/opt/run @@ -90,7 +90,7 @@ if [ ! -f "${initfile}" ]; then # copy rundeck defaults - if [ ! "$(ls -A /etc/rundeck)" ]; then + if [ ! "$(ls -1 /etc/rundeck|grep -v lost+found)" ]; then cp -R /opt/rundeck-defaults/* /etc/rundeck chown -R rundeck:rundeck /etc/rundeck fi From f35484f37b8972397d520c2d8d50948eba8372f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9g=C3=A9?= Date: Tue, 7 May 2019 17:14:36 +0200 Subject: [PATCH 2/2] Update run --- content/opt/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/opt/run b/content/opt/run index 5abd5d9..1d7dd3e 100644 --- a/content/opt/run +++ b/content/opt/run @@ -90,7 +90,7 @@ if [ ! -f "${initfile}" ]; then # copy rundeck defaults - if [ ! "$(ls -1 /etc/rundeck|grep -v lost+found)" ]; then + if [ ! "$(ls -1A /etc/rundeck|grep -v lost+found)" ]; then cp -R /opt/rundeck-defaults/* /etc/rundeck chown -R rundeck:rundeck /etc/rundeck fi @@ -107,7 +107,7 @@ if [ ! -f "${initfile}" ]; then if [ "${NO_LOCAL_MYSQL}" == "false" ]; then echo "=>Initializing local MySQL..." - if [ "$(ls -A /var/lib/mysql)" ]; then + if [ "$(ls -A1 /var/lib/mysql|grep -v lost+found)" ]; then /etc/init.d/mysql start else echo "=>MySQL datadir is empty...initializing"