|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|