#copy default config if folder is empty if [[ -z $(ls -A /config) ]]; then echo "Copy statup config" #empty cp -a config-src config-dest else echo "Config exist" #not empty fi #check if LOG value is = 0 if [ ${LOG} -eq 0 ]; then echo "Disable log" fi