Init commit

This commit is contained in:
santic-zombie
2022-07-03 11:40:01 +03:00
commit 2b9bed2e98
17 changed files with 527 additions and 0 deletions

13
opennebula.post-install Normal file
View File

@@ -0,0 +1,13 @@
#!/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