Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (38 sloc) 1.336 kb
#!/bin/sh
if [ "$1" = "configure" ]
then
if ! dpkg-statoverride --list /var/lib/eucalyptus/CC >/dev/null 2>&1; then
chown eucalyptus:eucalyptus /var/lib/eucalyptus/CC
chmod 700 /var/lib/eucalyptus/CC
fi
if ! dpkg-statoverride --list /var/lib/eucalyptus/keys >/dev/null 2>&1; then
chown eucalyptus:eucalyptus /var/lib/eucalyptus/keys
chmod 700 /var/lib/eucalyptus/keys
fi
if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2
then
EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:`
if ! [ -d "$EUCA_HOME/.ssh" ]
then
mkdir "$EUCA_HOME/.ssh"
chown eucalyptus "$EUCA_HOME/.ssh"
chmod 755 "$EUCA_HOME/.ssh"
fi
if ! [ -f "$EUCA_HOME/.ssh/id_rsa" ]
then
su eucalyptus -c "ssh-keygen -N '' -t rsa -f $EUCA_HOME/.ssh/id_rsa"
fi
fi
update-rc.d eucalyptus-cc start 20 2 3 4 5 . stop 20 0 1 6 . >/dev/null
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d eucalyptus-cc stop > /dev/null 2>&1 ||true
else
/etc/init.d/eucalyptus-cc stop > /dev/null 2>&1 ||true
fi
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d eucalyptus-cc start ||true
else
/etc/init.d/eucalyptus-cc start ||true
fi
fi
#DEBHELPER#
Jump to Line
Something went wrong with that request. Please try again.