mirror of
https://github.com/linuxserver/docker-baseimage-rdesktop.git
synced 2026-02-20 08:39:58 +08:00
fix init
This commit is contained in:
parent
3e1341727c
commit
bc7d30bc8b
@ -12,12 +12,14 @@ fi
|
||||
touch /lock.file
|
||||
|
||||
# default file copies first run
|
||||
[[ ! -d /config/.config ]] && \
|
||||
mkdir -p /config/.config && \
|
||||
cp /defaults/bashrc /config/.bashrc && \
|
||||
if [ ! -d /config/.config ]; then
|
||||
mkdir -p /config/.config
|
||||
cp /defaults/bashrc /config/.bashrc
|
||||
cp /defaults/startwm.sh /config/startwm.sh
|
||||
fi
|
||||
|
||||
# permissions
|
||||
PERM=$(stat -c '%U' /config/.config)
|
||||
[[ "${PERM}" != "abc" ]] && \
|
||||
chown -R abc:abc /config
|
||||
if [ "${PERM}" != "abc" ]; then
|
||||
chown -R abc:abc /config
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user