Skip to content

Commit

Permalink
Update run
Browse files Browse the repository at this point in the history
  • Loading branch information
h4wkmoon authored May 7, 2019
1 parent 9c888ec commit f35484f
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 -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
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 f35484f

Please sign in to comment.