From 1479e13d94773c633387c87cb084d7cb8edc5b1e Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 25 Jan 2024 20:49:16 +0100 Subject: [PATCH] Some script permission fixes --- .github/workflows/ci.yml | 4 ++++ scripts/install_debian.sh | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da02ff5..fe5f3b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,10 @@ jobs: mv dist client/dist rm -rf .git + - name: Fix permissions + run: | + chmod +x scripts/*.sh + - name: Upload client Spoolman artifact uses: actions/upload-artifact@v3 with: diff --git a/scripts/install_debian.sh b/scripts/install_debian.sh index d29c87d..f09f4da 100755 --- a/scripts/install_debian.sh +++ b/scripts/install_debian.sh @@ -142,12 +142,12 @@ fi echo -e "${GREEN}Installing Spoolman backend and its dependencies...${NC}" # Create venv if it doesn't exist -if [ ! -d "venv" ]; then +if [ ! -d ".venv" ]; then python3 -m venv .venv || exit 1 fi # Activate venv -source .venv/bin/activate +source .venv/bin/activate || exit 1 # Install dependencies using pip pip3 install -r requirements.txt || exit 1 @@ -160,6 +160,12 @@ if [ ! -f ".env" ]; then cp .env.example .env fi +# +# Add execute permissions of all files in scripts dir +# +echo -e "${GREEN}Adding execute permissions to all files in scripts dir...${NC}" +chmod +x scripts/*.sh + # # Install systemd service #