Skip to content

Commit

Permalink
Merge pull request #160 from h4wkmoon/patch-1
Browse files Browse the repository at this point in the history
Ignore the presence of lost+found in a newly created FS
  • Loading branch information
jjethwa authored May 7, 2019
2 parents 8cd8689 + f35484f commit b5559f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/opt/run
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if [ ! -f "${initfile}" ]; then


# copy rundeck defaults
if [ ! "$(ls -A /etc/rundeck)" ]; 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
Expand All @@ -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"
Expand Down

0 comments on commit b5559f3

Please sign in to comment.