#!/bin/bash
-set -x
+#set -x
#
# Defaults
#
# echo " -C config filename - def. \"$brisk_conf\""
# echo " -U unix socket path - def. \"$usock_path\""
# echo " -u system user to run brisk dae - def. \"$sys_user\""
- # echo " -x copy tests as normal php - def. \"$test_add\""
+ echo " -x copy tests as normal php - def. \"$test_add\""
echo
}
# -U*) usock_path="$(get_param "-U" "$1" "$2")"; sh=$?;;
# -u*) sys_user="$(get_param "-u" "$1" "$2")"; sh=$?;;
# system) action=system;;
- -W) web_only="TRUE";;
+# -W) web_only="TRUE";;
-x) test_add="TRUE";;
-h) usage $0; exit 0;;
*) usage $0; exit 1;;
:
fi
install -d ${web_path}
-for i in $(find web -type d | sed 's/^....//g'); do
+for i in $(find web -type d | grep '/' | sed 's/^....//g'); do
install -d ${web_path}/$i
done
install -m 644 "web/$i" "${web_path}/$i"
done
if [ "$test_add" = "TRUE" ]; then
- for i in $(find webtest -name '.htaccess' -o -name '*.php' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' -o -name 'terms-of-service*' | sed 's/^........//g'); do
+ for i in $(find webtest -name '.htaccess' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' -o -name 'terms-of-service*' | sed 's/^........//g'); do
install -m 644 "webtest/$i" "${web_path}/$i"
done
+ for i in $(find webtest -name '*.php' | sed 's/^........//g'); do
+ install -m 755 "webtest/$i" "${web_path}/$i"
+ done
fi
# # .js substitutions