mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-19 14:47:12 -04:00
Patch docker ndots sickness
This commit is contained in:
parent
1c67abb087
commit
422cc8a295
21
start.sh
21
start.sh
@ -1,19 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pushd ~
|
|
||||||
mkdir -p .config/mc
|
|
||||||
tar Jxf mcthemes.tar.xz
|
|
||||||
./mcthemes/mc_change_theme.sh mcthemes/puthre.theme
|
|
||||||
popd
|
|
||||||
|
|
||||||
update_ssmtp.sh
|
update_ssmtp.sh
|
||||||
cd /srv/ledgersmb
|
cd /srv/ledgersmb
|
||||||
|
|
||||||
# Revalidate the required CPAN packages in case the
|
|
||||||
# source tree is bind mounted and has changed since Docker build.
|
|
||||||
#cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
||||||
#cpanm --with-develop HTTP::AcceptLanguage
|
|
||||||
|
|
||||||
if [[ ! -f ledgersmb.conf ]]; then
|
if [[ ! -f ledgersmb.conf ]]; then
|
||||||
cp conf/ledgersmb.conf.default ledgersmb.conf
|
cp conf/ledgersmb.conf.default ledgersmb.conf
|
||||||
sed -i \
|
sed -i \
|
||||||
@ -32,14 +21,18 @@ fi
|
|||||||
# --postgres_password "$POSTGRES_PASS"
|
# --postgres_password "$POSTGRES_PASS"
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
# Patch Docker ndots:0 sickness
|
||||||
|
sudo chmod 666 /etc/resolv.conf
|
||||||
|
echo "options ndots:1" >>/etc/resolv.conf
|
||||||
|
sudo chmod 644 /etc/resolv.conf
|
||||||
|
|
||||||
# start ledgersmb
|
# start ledgersmb
|
||||||
if [[ ! -f DEVELOPMENT ]]; then
|
if [[ ! -f DEVELOPMENT ]]; then
|
||||||
# exec plackup --port 5001 --server Starman tools/starman.psgi \
|
# exec plackup --port 5001 --server Starman tools/starman.psgi \
|
||||||
exec plackup --port 5001 --server HTTP::Server::PSGI tools/starman.psgi \
|
exec plackup --port 5001 --server HTTP::Server::PSGI tools/starman.psgi \
|
||||||
--Reload "lib, old/lib, xt/lib, /usr/local/share/perl, /usr/share/perl, /usr/share/perl5"
|
--Reload "lib, old/lib, xt/lib, t, xt, /usr/local/share/perl, /usr/share/perl, /usr/share/perl5"
|
||||||
else
|
else
|
||||||
exec plackup --port 5001 --server HTTP::Server::PSGI tools/starman-development.psgi \
|
exec plackup --port 5001 --server HTTP::Server::PSGI tools/starman-development.psgi \
|
||||||
--workers 1 --env development \
|
--workers 1 --env development \
|
||||||
--Reload "lib, old/lib, xt/lib, /usr/local/share/perl, /usr/share/perl, /usr/share/perl5"
|
--Reload "lib, old/lib, xt/lib, t, xt, /usr/local/share/perl, /usr/share/perl, /usr/share/perl5"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user