diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-13 20:45:27 -0700 |
---|---|---|
committer | jblake+piny@omgwallhack.org <jblake@omgwallhack.org> | 2010-10-13 20:45:27 -0700 |
commit | c1ca55a28384c5bcc588c5fb60c5ec9afb980669 (patch) | |
tree | ab3a689cc733b3d87238c0ff8a75a72b658b3e60 /usr/src/libpiny/lib/Piny/Repo.pm | |
parent | 2f862e33447446116907c60ba1142369f70a99ab (diff) | |
download | piny-code-c1ca55a28384c5bcc588c5fb60c5ec9afb980669.tar.gz piny-code-c1ca55a28384c5bcc588c5fb60c5ec9afb980669.zip |
Remove symlink before recreating it.
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Repo.pm')
-rw-r--r-- | usr/src/libpiny/lib/Piny/Repo.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm index 598760e..917d9e1 100644 --- a/usr/src/libpiny/lib/Piny/Repo.pm +++ b/usr/src/libpiny/lib/Piny/Repo.pm @@ -258,6 +258,7 @@ sub rebuild { print APACHE $s->apache_config; close( APACHE ) or die "Could not close new apache config: $!"; + unlink( "/etc/apache2/piny-available/" . $s->name ); symlink( "/etc/apache2/piny-available/" . $s->name, "/etc/apache2/piny-enabled/" . $s->name ) or die "Could not symlink apache config: $!"; system( "/etc/init.d/apache2", "reload" ) and die "Could not reload apache config!"; |