Update dockerrun.sh

This commit is contained in:
Christoffer Martinsson 2024-04-13 14:39:11 +02:00
parent 5f081886dc
commit 1ad3571a27

View File

@ -3,10 +3,11 @@
if [ ! -d /config/code ]; then
echo "Copying current home directory to config path."
cp -r /home/code /config/
chown code:root /config/code
fi
echo "Remapping home directory"
rm -rf /home/code
ln -s /config/home/code /home/code
ln -s /config/code /home/code
if [ ! -d /config/ssh ]; then
echo "Copying current ssh directory to config path."