Unverified Commit 4d593279 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

fix rc.local bash so it can actually run…

parent 1f1d3828
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ send_back_to_the_future() {
	if [ -z "$1" ] ; then
		ntpdate -b de.pool.ntp.org
	else
		ntpdate -b $1
		ntpdate -b "$1"
	fi
	# set fake date
	date --set="+398 days +6 hours + 23 minutes"
@@ -48,7 +48,7 @@ cleanup_srv_workspace() {
	rm -rf --one-file-system /srv/workspace/chroots/rbuild-openwrt-build-*
}

cleanup_rbuild-debian() {
cleanup_rbuild_debian() {
	rm -rf --one-file-system /srv/reproducible-results/rbuild-debian/r-b-build.*
}

@@ -71,8 +71,8 @@ iptables -I INPUT -p udp --dport 111 -j DROP
# clean up left-overs which make no sense after a reboot
#
fixup_pbuilder_lockfiles
cleanup_rbuild-debian
cleanup_srv_workspace_chroots
cleanup_rbuild_debian
cleanup_srv_workspace

#
# notify jenkins reboots on irc