🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay
2023-03-14 19:23:50 -04:00
parent 16760ba893
commit 81de015f7d
6 changed files with 13 additions and 12 deletions

View File

@@ -202,7 +202,7 @@ __cron() {
eval "$command"
sleep $interval
[ -f "/run/cron/$cmd" ] || break
done |& tee /var/log/entrypoint.log
done |& tee /data/logs/entrypoint.log
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__replace() {

View File

@@ -43,9 +43,9 @@ __update_conf_files() {
local port="${SERVICE_PORT:-${ARIA2RPCPORT:-8000}}"
[ -d "$etc_dir" ] || mkdir -p "$etc_dir"
[ -d "$data_dir" ] || mkdir -p "$data_dir"
[ -d "/var/log/aria2" ] || mkdir -p "/var/log/aria2"
[ -d "/data/logs/aria2" ] || mkdir -p "/data/logs/aria2"
cp -Rf "$conf_dir/." "$etc_dir/"
ln -sf "/dev/stdout" "/var/log/aria2/aria2.log"
ln -sf "/dev/stdout" "/data/logs/aria2/aria2.log"
ln -sf "$conf_dir/aria2.session" "$etc_dir/aria2.session"
if [ -f "$etc_dir/aria-ng.config.js" ]; then
rm -Rf "$get_config"

View File

@@ -45,7 +45,7 @@ __update_conf_files() {
[ -d "$etc_dir" ] || mkdir -p "$etc_dir"
[ -d "$conf_dir" ] && cp -Rf "$conf_dir/." "$etc_dir/"
ln -sf "/dev/stderr" "var/log/nginx/nginx.log"
ln -sf "/dev/stdout" "/var/log/nginx/access.log"
ln -sf "/dev/stdout" "/data/logs/nginx/access.log"
if [ "$SSL_ENABLED" = "true" ]; then
__file_copy "$conf_dir/nginx.ssl.conf" "$etc_dir/nginx.conf"
__file_copy "$conf_dir/vhosts.d/default.ssl.conf" "$etc_dir/vhosts.d/default.conf"