Final fixes

This commit is contained in:
santic-zombie
2024-06-23 18:21:27 +03:00
parent 83f25d4af1
commit 9f6750f9b7
3 changed files with 8 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ create_oneuser() {
create_cloudgroup
create_oneuser
# install ~oneadmin/.ssh/config if not present on a fresh install only
# Install ~oneadmin/.ssh/config if not present on a fresh install only
if [ ! -e "${ONEHOME}/.ssh/config" ] && [ -z "$2" ]; then
if [ ! -d "${ONEHOME}/.ssh" ]; then
mkdir -p "${ONEHOME}/.ssh"
@@ -44,14 +44,13 @@ if [ ! -e "${ONEHOME}/.ssh/config" ] && [ -z "$2" ]; then
chown "$ONE_USER:$ONE_GROUP" "${ONEHOME}/.ssh/config"
fi
# Fix permissions oneadmin:cloud
# Set permissions and owner oneadmin:cloud
for F in /var/lock/one /var/log/one /var/run/one
do
if [ ! -d "${F}" ]; then
mkdir -p "${F}"
chmod 0750 "${F}"
chown "${ONE_USER}:${ONE_GROUP}" "${F}"
echo "CHOWNED ${F}"
fi
done