[asterisk-commits] pabelanger: branch pabelanger/non-root r262101 - /team/pabelanger/non-root/so...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 8 10:48:11 CDT 2010


Author: pabelanger
Date: Sat May  8 10:48:05 2010
New Revision: 262101

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=262101
Log:
Set chown and chgrp on sound and moh files.

Modified:
    team/pabelanger/non-root/sounds/Makefile

Modified: team/pabelanger/non-root/sounds/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/non-root/sounds/Makefile?view=diff&rev=262101&r1=262100&r2=262101
==============================================================================
--- team/pabelanger/non-root/sounds/Makefile (original)
+++ team/pabelanger/non-root/sounds/Makefile Sat May  8 10:48:05 2010
@@ -155,7 +155,17 @@
 $(SOUNDS_DIR)/en $(MOH_DIR) $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr:
 	mkdir -p $@
 
-install: $(SOUNDS_DIR)/en $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr $(MOH_DIR) $(CORE_SOUND_TAGS) $(EXTRA_SOUND_TAGS) $(MOH_TAGS)
+permissions:
+	@if [ "$(AST_USER)" != "" ] ; then \
+		chown -R $(AST_USER) $(SOUNDS_DIR) ; \
+		chown -R $(AST_USER) $(MOH_DIR) ; \
+	fi
+	@if [ "$(AST_GROUP)" != "" ] ; then \
+		chgrp -R $(AST_GROUP) $(SOUNDS_DIR) ; \
+		chgrp -R $(AST_GROUP) $(MOH_DIR) ; \
+	fi
+
+install: $(SOUNDS_DIR)/en $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr $(MOH_DIR) $(CORE_SOUND_TAGS) $(EXTRA_SOUND_TAGS) $(MOH_TAGS) permissions
 
 uninstall:
 	rm -rf $(SOUNDS_DIR)




More information about the asterisk-commits mailing list