]> git.plutz.net Git - shellwiki/commitdiff
allow move / rename /delete of overrides to immutable pages
authorPaul Hänsch <paul@plutz.net>
Wed, 20 Sep 2023 10:14:20 +0000 (12:14 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 20 Sep 2023 10:14:20 +0000 (12:14 +0200)
handlers/60_move_rename_delete.sh

index 27246bd108acecac61ba2d7dc17406979aa2272d..749affcfdd88fa31c0021fb1c924bcd2c617f843 100755 (executable)
@@ -33,7 +33,7 @@ case "${PATH_INFO}" in
       printf 'Refresh: %i, url=%s\r\n' 4 ./
       theme_error 403
       return 0
-    elif [ -d "$_EXEC/pages/${page}/" ]; then
+    elif [ ! -d "$_DATA/pages/${page}" -a -d "$_EXEC/pages/${page}" ]; then
       theme_page - <<-EOF
        <article>
          <p class=error>