14 lines
544 B
Bash
14 lines
544 B
Bash
#!/bin/sh
|
|
# Append the oneadmin credentials to one_auth to avoid overwriting a file
|
|
# that may already exist
|
|
usermod -m -d /var/lib/one oneadmin
|
|
if [ ! -f /var/lib/one/.one/one_auth ]; then
|
|
mkdir -p /var/lib/one/.one/
|
|
echo 'oneadmin:0neadm1n' >> /var/lib/one/.one/one_auth
|
|
echo ">> You must edit the password in /var/lib/one/.one/one_auth"
|
|
fi
|
|
chown oneadmin:cloud -R /var/log/one /var/lib/one /run/one /run/lock/one
|
|
echo ">> To install required gems run as a local user:"
|
|
echo ">> bundler install --gemfile /usr/share/one/Gemfile"
|
|
exit 0
|