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