expose log dir to /config volume
This commit is contained in:
parent
3d9d4b4333
commit
b7c5fee65f
@ -103,4 +103,22 @@ else
|
||||
|
||||
echo "'$MODE' is not a recognised appion for the MODE environment variable. Accepted appions are 'manager' and 'worker'."
|
||||
|
||||
fi
|
||||
|
||||
#Expose log directory
|
||||
if [ ! -d /config/cronicle/logs ]
|
||||
then
|
||||
|
||||
echo "Logs dir is missing, creating."
|
||||
|
||||
cp -r /app/cronicle/logs /config/cronicle/logs
|
||||
rm -rf /app/cronicle/logs
|
||||
ln -s /config/cronicle/logs /app/cronicle/logs
|
||||
else
|
||||
|
||||
echo "Logs dir already exists. Doesn't need creating."
|
||||
echo "Linking persistent logs dir back into Cronicle."
|
||||
rm -rf /app/cronicle/logs
|
||||
ln -s /config/cronicle/logs /app/cronicle/logs
|
||||
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user