Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Commit

Permalink
Remove the folders to tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevPavelmc committed Oct 6, 2022
1 parent 1c9cc77 commit d239acb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dpkg-reconfigure -f noninteractive tzdata || exit

### force creation of common folders
mkdir -p /openvpn/{tmp,sock,pid} /dev/net /config/log /config/etc/tmp
chown -R openvpn_as:openvpn_as /openvpn

# common tweaks
if [ ! -f /usr/bin/systemctl ] ; then
Expand All @@ -30,8 +29,8 @@ fi
function move_dirs()
{
sed -i \
-e 's#~/tmp#/openvpn/tmp#g' \
-e 's#~/sock#/openvpn/sock#g' \
-e 's#~/tmp#/tmp#g' \
-e 's#~/sock#/tmp/sock#g' \
"$1"
}

Expand Down

0 comments on commit d239acb

Please sign in to comment.