diff options
author | Rafael Reggiani Manzo | 2016-01-16 09:37:36 -0200 |
---|---|---|
committer | Rafael Reggiani Manzo | 2016-02-17 19:45:45 -0200 |
commit | b1cca5a42d5c028f587786181ffffae6272c5a84 (patch) | |
tree | a1ab787e827f6004403fdd1db97de97561f983fe | |
parent | 3416f3fe951e21077474fba97ab36b64b06b5d18 (diff) | |
download | aur-b1cca5a42d5c028f587786181ffffae6272c5a84.tar.gz |
Create required dir /var/run/one
-rw-r--r-- | opennebula.install | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opennebula.install b/opennebula.install index 346cdf19b63f..e12e129a9f3f 100644 --- a/opennebula.install +++ b/opennebula.install @@ -5,6 +5,8 @@ pre_install() { useradd -d /srv/cloud/one -g cloud -c "OpenNebula administrator account" -s /usr/bin/bash oneadmin mkdir -p /srv/cloud/one/.one/ echo "ONE_LOCATION="/srv/cloud/one"; export ONE_LOCATION; export PATH=$PATH:/srv/cloud/one/bin" > /srv/cloud/one/.bashrc + + mkdir -p /var/run/one } post_install() { @@ -12,12 +14,13 @@ post_install() { # that may already exist echo 'oneadmin:0neadm1n' >> /srv/cloud/one/.one/one_auth echo ">> You must edit the password in /srv/cloud/one/.one/one_auth" - chown oneadmin:cloud -R /srv/cloud/one + chown oneadmin:cloud -R /srv/cloud/one /var/run/one } pre_remove() { userdel oneadmin && echo ">> User 'oneadmin' has been removed." groupdel cloud && echo ">> Group 'cloud' has been removed." + rm -rf /var/run/one && echo ">> Removed /var/run/one" } post_remove() { |