Some script permission fixes

This commit is contained in:
Donkie
2024-01-25 20:49:16 +01:00
parent 2786eff3da
commit 1479e13d94
2 changed files with 12 additions and 2 deletions

View File

@@ -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:

View File

@@ -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
#