fixed scripts
This commit is contained in:
parent
e55897ecef
commit
f16553bb25
2 changed files with 16 additions and 10 deletions
|
|
@ -14,12 +14,15 @@ chmod 755 /etc/xrdp/sesman.ini
|
||||||
|
|
||||||
touch /home/${USERNAME}/lock.file
|
touch /home/${USERNAME}/lock.file
|
||||||
|
|
||||||
# default file copies first run
|
# create .config dir
|
||||||
[[ ! -d /home/${USERNAME}/.config ]] && \
|
[[ ! -d /home/${USERNAME}/.config ]] && \
|
||||||
mkdir -p /home/${USERNAME}/.config && \
|
mkdir -p /home/${USERNAME}/.config
|
||||||
|
|
||||||
|
|
||||||
cp /defaults/startwm.sh /home/${USERNAME}/startwm.sh
|
cp /defaults/startwm.sh /home/${USERNAME}/startwm.sh
|
||||||
chmod +x /home/${USERNAME}/startwm.sh
|
chmod +x /home/${USERNAME}/startwm.sh
|
||||||
chown -R ${USERNAME}:${USERAME} /home/${USERNAME}
|
chown -R ${USERNAME}:${USERAME} /home/${USERNAME}
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
PERM=$(stat -c '%U' /home/${USERNAME}/.config)
|
PERM=$(stat -c '%U' /home/${USERNAME}/.config)
|
||||||
[[ "${PERM}" != "${USERNAME}" ]] && \
|
[[ "${PERM}" != "${USERNAME}" ]] && \
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,15 @@ chmod 755 /etc/xrdp/sesman.ini
|
||||||
|
|
||||||
touch /home/${USERNAME}/lock.file
|
touch /home/${USERNAME}/lock.file
|
||||||
|
|
||||||
# default file copies first run
|
# create .config dir
|
||||||
[[ ! -d /home/${USERNAME}/.config ]] && \
|
[[ ! -d /home/${USERNAME}/.config ]] && \
|
||||||
mkdir -p /home/${USERNAME}/.config && \
|
mkdir -p /home/${USERNAME}/.config
|
||||||
|
|
||||||
|
|
||||||
cp /defaults/startwm.sh /home/${USERNAME}/startwm.sh
|
cp /defaults/startwm.sh /home/${USERNAME}/startwm.sh
|
||||||
chmod +x /home/${USERNAME}/startwm.sh
|
chmod +x /home/${USERNAME}/startwm.sh
|
||||||
chown -R ${USERNAME}:${USERAME} /home/${USERNAME}
|
chown -R ${USERNAME}:${USERAME} /home/${USERNAME}
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
PERM=$(stat -c '%U' /home/${USERNAME}/.config)
|
PERM=$(stat -c '%U' /home/${USERNAME}/.config)
|
||||||
[[ "${PERM}" != "${USERNAME}" ]] && \
|
[[ "${PERM}" != "${USERNAME}" ]] && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue