0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix: mkdir failed and ec2 infinitely re-launch

no-problem with first launch, but could not recover after 2nd launch.
cloud-init error message indicate mkdir failed.

$ sudo cat /var/log/cloud-init-output.log
mkdir: cannot create directory '/verdaccio/conf': File exists
This commit is contained in:
Ikiru Yoshizaki 2019-08-13 16:21:14 +09:00
parent 621ebfeb1a
commit 342d284568

View file

@ -159,7 +159,7 @@ Resources:
mount -a -t efs defaults
# Create/update the config & password files.
mkdir "$BASE/conf"
mkdir "$BASE/conf" -p
curl -o "$BASE/conf/htpasswd" "${VerdaccioHtpasswdUrl}"
curl -o "$BASE/conf/config.yaml" "${VerdaccioConfigUrl}"