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:
Daniel Golle
2015-07-16 22:25:50 +02:00
parent 185c195e4d
commit 480be2b2d4
3 changed files with 9 additions and 19 deletions
+6 -4
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
/etc/gnunet