Update dockerrun.sh
This commit is contained in:
parent
5f081886dc
commit
1ad3571a27
@ -3,10 +3,11 @@
|
|||||||
if [ ! -d /config/code ]; then
|
if [ ! -d /config/code ]; then
|
||||||
echo "Copying current home directory to config path."
|
echo "Copying current home directory to config path."
|
||||||
cp -r /home/code /config/
|
cp -r /home/code /config/
|
||||||
|
chown code:root /config/code
|
||||||
fi
|
fi
|
||||||
echo "Remapping home directory"
|
echo "Remapping home directory"
|
||||||
rm -rf /home/code
|
rm -rf /home/code
|
||||||
ln -s /config/home/code /home/code
|
ln -s /config/code /home/code
|
||||||
|
|
||||||
if [ ! -d /config/ssh ]; then
|
if [ ! -d /config/ssh ]; then
|
||||||
echo "Copying current ssh directory to config path."
|
echo "Copying current ssh directory to config path."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user