Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 71fcf58

Browse files
committed
Fix htaccess management in debian package
1 parent c6685bf commit 71fcf58

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

dist/deb-pydio/debian/pydio.postinst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# postinst script for phpmyadmin
2+
# postinst script for pydio
33

44
set -e
55

@@ -34,6 +34,13 @@ then
3434

3535
fi
3636

37+
if [ -f /tmp/pydio_original_htaccess ]
38+
then
39+
40+
mv /tmp/pydio_original_htaccess $BIN_DIR/.htaccess
41+
42+
fi
43+
3744
fi
3845

3946
fi

dist/deb-pydio/debian/pydio.prerm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
# prerm script for pydio
3+
4+
set -e
5+
6+
if [ "$1" = "upgrade" ];
7+
then
8+
9+
if [ -f "$BIN_DIR/.htaccess" ]
10+
then
11+
# backup existing htaccess
12+
mv $BIN_DIR/.htaccess /tmp/pydio_original_htaccess
13+
fi
14+
15+
fi

0 commit comments

Comments
 (0)