Use radmin for hupage
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 29 Jun 2012 14:48:45 +0000 (15:48 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 5 Jul 2012 08:58:14 +0000 (09:58 +0100)
scripts/git/post-receive

index f6af869..c9a3dc4 100755 (executable)
@@ -2,8 +2,8 @@
 # git Post-receive configuration update script
 #
 # To install:
-# * cd <config-dir>/raddb
-# * git config receive.denyCurrentBranch ignore
+# * Enable r/w control socket for the user you're pushing with
+# * cd <config-dir>/raddb git config receive.denyCurrentBranch ignore
 # * cp ./post-receive <config-dir>/raddb/.git/hooks/
 # * # Edit the capitalized variables below to match your environment.
 #
@@ -13,7 +13,7 @@
 STABLE_TAG='stable'
 
 # Command used to restart the RADIUS daemon
-RAD_REST='/etc/init.d/freeradius restart'
+RAD_REST='radmin -e hup'
 
 # Command used to verify the new configuration
 RAD_CONF='radiusd -C'