Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
touch /var/ipfire/main/firstsetup_ok
fi
+ # Run this all only once. The Exoscale metadata service does not
+ # give us a lot of information, so users are quite likely to make
+ # changes which should not be overwritten.
+ : > /var/ipfire/main/.cloud-init-done
+
# All done
echo_ok
}
case "${1}" in
start)
+ # Do nothing if this process has already been completed
+ if [ -e "/var/ipfire/main/.cloud-init-done" ]; then
+ exit 0
+ fi
+
# Check if we are running in the cloud
if running_on_ec2; then
scriptname="/etc/rc.d/helper/aws-setup"