mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-08-20 15:47:24 -04:00
Incorporate reviews from Copilot
This commit is contained in:
parent
44abf50a98
commit
b290e69a3b
@ -68,7 +68,7 @@ COPY start.sh /usr/local/bin/start.sh
|
|||||||
COPY config.sh /usr/local/bin/config.sh
|
COPY config.sh /usr/local/bin/config.sh
|
||||||
COPY run.sh /usr/local/bin/run.sh
|
COPY run.sh /usr/local/bin/run.sh
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/start.sh && \
|
RUN chmod +x /usr/local/bin/start.sh /usr/local/bin/config.sh /usr/local/bin/run.sh && \
|
||||||
mkdir -p /var/www && \
|
mkdir -p /var/www && \
|
||||||
mkdir -p /srv/ledgersmb/local/conf && \
|
mkdir -p /srv/ledgersmb/local/conf && \
|
||||||
chown -R www-data /srv/ledgersmb/local
|
chown -R www-data /srv/ledgersmb/local
|
||||||
|
@ -35,7 +35,7 @@ fi
|
|||||||
if [[ -n "$SSMTP_USE_STARTTLS" ]]; then
|
if [[ -n "$SSMTP_USE_STARTTLS" ]]; then
|
||||||
echo "\$SSMTP_USE_STARTTLS set; parameter is deprecated"
|
echo "\$SSMTP_USE_STARTTLS set; parameter is deprecated"
|
||||||
if [[ -z "$LSMB_MAIL_SMTPTLS" ]]; then
|
if [[ -z "$LSMB_MAIL_SMTPTLS" ]]; then
|
||||||
echo " Deriving \$LSMB_MAIL_SMTPSENDER_HOSTNAME setting from \$SSMTP_USE_STARTTLS"
|
echo " Deriving \$LSMB_MAIL_SMTPTLS setting from \$SSMTP_USE_STARTTLS"
|
||||||
LSMB_MAIL_SMTPTLS=$SSMTP_USE_STARTTLS
|
LSMB_MAIL_SMTPTLS=$SSMTP_USE_STARTTLS
|
||||||
fi
|
fi
|
||||||
LSMB_HAVE_DEPRECATED=1
|
LSMB_HAVE_DEPRECATED=1
|
||||||
|
7
start.sh
7
start.sh
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
home_dir="$(dirname `readlink -f $BASH_SOURCE`)"
|
home_dir="$(dirname $(readlink -f $BASH_SOURCE))"
|
||||||
"$home_dir/config.sh" || (echo "Failed configuration" ; exit)
|
"$home_dir/config.sh" || { echo "Failed configuration" ; exit 1 }
|
||||||
exec "$home_dir/run.sh"
|
|
||||||
|
exec "$home_dir/run.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user