Permalink
Browse files

Be selective about what symlink to delete.

  • Loading branch information...
1 parent 502832a commit 82fad3d9ef24d2c3a939e90652f037f0dfec15d8 @gphat committed Apr 12, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/Dist/Zilla/Plugin/Dpkg/PerlbrewStarman.pm
@@ -335,7 +335,14 @@ case "$1" in
rm /etc/$PACKAGE
# Remove the nginx config
- rm /etc/nginx/sites-available/$PACKAGE
+ if [ -h /etc/nginx/sites-available/$PACKAGE ]; then
+ rm /etc/nginx/sites-available/$PACKAGE
+ fi
+
+ # Remove the apache config
+ if [ -h /etc/apache/sites-available/$PACKAGE ]; then
+ rm /etc/apache/sites-available/$PACKAGE
+ fi
# Remove the user
userdel $PACKAGE || true

0 comments on commit 82fad3d

Please sign in to comment.