Some script permission fixes
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user