]> git.pld-linux.org Git - packages/webapps.git/commitdiff
- make relative symlinks (for vserver / chroot)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 10 Jan 2006 00:06:34 +0000 (00:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    webapps.sh -> 1.12

webapps.sh

index 945d706beef57ef3ad8d56c85aff03299383bf52..8d9efabf2683664cb91622c91d90536ee844c6e6 100644 (file)
@@ -12,7 +12,7 @@ webapp_link() {
 
 webapp_register() {
        local link=$(webapp_link $app)
-       ln -sf $webapps/$app/$httpd.conf /etc/$httpd/webapps.d/$link.conf
+       ln -sf ../../..$webapps/$app/$httpd.conf /etc/$httpd/webapps.d/$link.conf
 }
 
 webapp_unregister() {
@@ -27,7 +27,7 @@ webapp_list() {
                echo "$server:"
                for conf in /etc/$server/webapps.d/*; do
                        [ -L $conf ] || continue
-                       app=$(readlink $conf | sed -e "s,$webapps/,,;s,/$server.conf$,,")
+                       app=$(basename $conf .conf)
                        echo "- $app"
                done
        done
This page took 0.105272 seconds and 4 git commands to generate.