File: install2.pl

package info (click to toggle)
apt-cacher 0.9.4sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 268 kB
  • ctags: 224
  • sloc: perl: 1,862; makefile: 495; sh: 37
file content (14 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -w

# Restart Apache to make it read its modified config file
if( -f "/etc/init.d/apache" ) {
	print "1\n";
	#`/etc/init.d/apache restart`;
} elsif( -f "/etc/init.d/apache-ssl" ) {
	print "2\n";
	#`/etc/init.d/apache-ssl restart`;
} else {
	print "Expected Apache init script was not found. Please restart Apache manually.\n";
}

exit(0);