From b7fc37048defa08f6456ae0c09890a0a7232938b Mon Sep 17 00:00:00 2001 From: alexbelgium Date: Sun, 3 Apr 2022 00:11:58 +0000 Subject: [PATCH] Beautify bash --- .../rootfs/etc/cont-init.d/99-run.sh | 32 +++++++++---------- .../rootfs/etc/cont-init.d/00-folders.sh | 4 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh index 04f98a36c..ee14aee51 100644 --- a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh @@ -20,27 +20,27 @@ fi if bashio::config.has_value 'Updates'; then - # Align update with options - echo "" - FREQUENCY=$(bashio::config 'Updates') - bashio::log.info "$FREQUENCY updates" - echo "" + # Align update with options + echo "" + FREQUENCY=$(bashio::config 'Updates') + bashio::log.info "$FREQUENCY updates" + echo "" - # Sets cron // do not delete this message - cp /templates/cronupdate /etc/cron."${FREQUENCY}"/ - chmod 777 /etc/cron."${FREQUENCY}"/cronupdate + # Sets cron // do not delete this message + cp /templates/cronupdate /etc/cron."${FREQUENCY}"/ + chmod 777 /etc/cron."${FREQUENCY}"/cronupdate - # Sets cron to run with www-data user - # sed -i 's|root|www-data|g' /etc/crontab + # Sets cron to run with www-data user + # sed -i 's|root|www-data|g' /etc/crontab - # Starts cron - service cron start + # Starts cron + service cron start - # Export variables - IMPORT_DIR_WHITELIST="${CONFIGSOURCE}/import_files" - export IMPORT_DIR_WHITELIST + # Export variables + IMPORT_DIR_WHITELIST="${CONFIGSOURCE}/import_files" + export IMPORT_DIR_WHITELIST - bashio::log.info "Automatic updates were requested. The files in ${CONFIGSOURCE}/import_files will be imported $FREQUENCY." + bashio::log.info "Automatic updates were requested. The files in ${CONFIGSOURCE}/import_files will be imported $FREQUENCY." if [ ! "$(ls -A "${CONFIGSOURCE}"/import_files)" ]; then bashio::log.fatal "Automatic updates were requested, but there are no configuration files in ${CONFIGSOURCE}/import_files. There will therefore be be no automatic updates." diff --git a/qbittorrent/rootfs/etc/cont-init.d/00-folders.sh b/qbittorrent/rootfs/etc/cont-init.d/00-folders.sh index e1c406167..46fec2399 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/00-folders.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,5 @@ #!/bin/bash # Avoid linuxserver anti tamper issues -chown root:root /config/custom-cont-init.d* &>/dev/null || true -chown root:root /config/custom-services* &>/dev/null || true +chown root:root /config/custom-cont-init.d* &>/dev/null || true +chown root:root /config/custom-services* &>/dev/null || true