diff --git a/.templates/python/directoryfix.sh b/.templates/python/directoryfix.sh index 437d4b45..93725145 100755 --- a/.templates/python/directoryfix.sh +++ b/.templates/python/directoryfix.sh @@ -2,9 +2,12 @@ # Directoryfix for python +#current user +u=$(whoami) + if [ ! -d ./volumes/python/app ]; then sudo mkdir -p ./volumes/python/app - sudo chown -R pi:pi ./volumes/python + sudo chown -R $u:$u ./volumes/python echo 'print("hello world")' >./volumes/python/app/app.py fi