mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-06-09 18:54:07 -04:00
don't expose deb
This commit is contained in:
16
postinst
Executable file
16
postinst
Executable file
@ -0,0 +1,16 @@
|
||||
# only if we're root
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BINARY_PATH=${BASE}/usr/local/bin/gitea
|
||||
SYSTEMD_PATH=${BASE}/etc/systemd/system
|
||||
CONFIG_PATH=${BASE}/etc/gitea
|
||||
DATA_PATH=${BASE}/var/lib/gitea
|
||||
|
||||
echo chown -R git:git "$DATA_PATH/"
|
||||
echo chmod -R 750 "$DATA_PATH/"
|
||||
echo chown root:git "$CONFIG_PATH"
|
||||
echo chmod 770 "$CONFIG_PATH"
|
Reference in New Issue
Block a user