From 300562ae593fc498c55175a4626233f0d56bc1ba Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 1 Mar 2012 18:00:31 -0500 Subject: [PATCH] CC-3374: Ability to use eclipse to run/debug our python services. Script to prepare environment and make this possbile -pypo-notify wasn't working in debug env --- dev_tools/toggle-pypo-debug.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dev_tools/toggle-pypo-debug.sh b/dev_tools/toggle-pypo-debug.sh index 982c7435c..d8f6a3e96 100755 --- a/dev_tools/toggle-pypo-debug.sh +++ b/dev_tools/toggle-pypo-debug.sh @@ -17,8 +17,8 @@ if [ "$1" = "--enable" ]; then user=$2 echo "Changing ownership to user $1" - chown -Rv $user:$user /var/log/airtime/pypo - chown -v $user:$user /etc/airtime/pypo.cfg + chmod -R a+rw /var/log/airtime/pypo + chmod a+r /etc/airtime/pypo.cfg chown -Rv $user:$user /var/tmp/airtime/pypo/ chmod -v a+r /etc/airtime/api_client.cfg elif [ "$1" = "--disable" ]; then @@ -26,8 +26,7 @@ elif [ "$1" = "--disable" ]; then user="pypo" echo "Changing ownership to user $1" - chown -Rv $user:$user /var/log/airtime/pypo - chown -v $user:$user /etc/airtime/pypo.cfg + chmod 644 /etc/airtime/pypo.cfg chown -Rv $user:$user /var/tmp/airtime/pypo/ chmod -v a+r /etc/airtime/api_client.cfg