mirror of
https://github.com/linuxserver/docker-baseimage-rdesktop.git
synced 2026-02-20 08:39:58 +08:00
fix indents
This commit is contained in:
parent
dd185b4c43
commit
f60f70839b
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ ! -e /lock.file ]; then
|
||||
# give abc a sudo shell
|
||||
chsh abc -s /bin/bash
|
||||
sed -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' \
|
||||
-i /etc/sudoers
|
||||
sed -e 's/^wheel:\(.*\)/wheel:\1,abc/g' -i /etc/group
|
||||
# give abc a sudo shell
|
||||
chsh abc -s /bin/bash
|
||||
sed -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' \
|
||||
-i /etc/sudoers
|
||||
sed -e 's/^wheel:\(.*\)/wheel:\1,abc/g' -i /etc/group
|
||||
fi
|
||||
|
||||
# create lock file after first run
|
||||
@ -13,13 +13,13 @@ touch /lock.file
|
||||
|
||||
# default file copies first run
|
||||
if [ ! -d /config/.config ]; then
|
||||
mkdir -p /config/.config
|
||||
cp /defaults/bashrc /config/.bashrc
|
||||
cp /defaults/startwm.sh /config/startwm.sh
|
||||
mkdir -p /config/.config
|
||||
cp /defaults/bashrc /config/.bashrc
|
||||
cp /defaults/startwm.sh /config/startwm.sh
|
||||
fi
|
||||
|
||||
# permissions
|
||||
PERM=$(stat -c '%U' /config/.config)
|
||||
if [ "${PERM}" != "abc" ]; then
|
||||
chown -R abc:abc /config
|
||||
chown -R abc:abc /config
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user