mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
gnunet: update source, improve packaging
* always re-create config-file when service is started * use /lib/upgrade/keep.d instead of /etc/sysupgrade.conf sed'ery Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -32,9 +32,11 @@ fix_libexec_permissions() {
|
||||
}
|
||||
|
||||
prepare_config() {
|
||||
mkdir -p $GNUNET_HOME
|
||||
chown gnunet:gnunet $GNUNET_HOME
|
||||
chmod 0750 $GNUNET_HOME
|
||||
if [ ! -e "$GNUNET_HOME" ]; then
|
||||
mkdir -p $GNUNET_HOME
|
||||
chown gnunet:gnunet $GNUNET_HOME
|
||||
chmod 0750 $GNUNET_HOME
|
||||
fi
|
||||
touch $CONFIGFILE
|
||||
chown root:gnunet $CONFIGFILE
|
||||
chmod 0640 $CONFIGFILE
|
||||
@@ -74,7 +76,7 @@ prepare_config() {
|
||||
|
||||
start_service() {
|
||||
fix_libexec_permissions
|
||||
[ ! -e $GNUNET_HOME ] && prepare_config
|
||||
prepare_config
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param user gnunet
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/etc/gnunet
|
||||
Reference in New Issue
Block a user