apk build
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
opennebula-alpine/opennebula.post-install

13 lines
544 B

#!/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