Skip to content

Commit

Permalink
fix format override.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil_Gorpinchenko authored and Daniil_Gorpinchenko committed Sep 26, 2024
1 parent a219f41 commit c3ad121
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,17 @@ jobs:
mkdir -p /var/www/csr/stage/
echo '${{ secrets.DEPLOY_CONFIG }}' > /var/www/csr/stage/config.json
sudo rm -rf /etc/systemd/system/stage.csr.service.d
mkdir -p /etc/systemd/system/stage.csr.service.d/override.conf
sudo mkdir -p /etc/systemd/system/stage.csr.service.d
sudo chown root:root /etc/systemd/system/stage.csr.service.d
sudo chmod 755 /etc/systemd/system/stage.csr.service.d
echo '[Service]
Environment="JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}"
Environment="EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}"
Environment="DB_USER=${{ secrets.DB_USER }}"
Environment="DB_PASSWORD=${{ secrets.DB_PASSWORD }}"' > /etc/systemd/system/stage.csr.service.d/override.conf
echo -e "[Service]\n\
Environment=\"JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}\"\n\
Environment=\"EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}\"\n\
Environment=\"DB_USER=${{ secrets.DB_USER }}\"\n\
Environment=\"DB_PASSWORD=${{ secrets.DB_PASSWORD }}\"" > override.conf
sudo mv override.conf /etc/systemd/system/stage.csr.service.d/override.conf
sudo chown root:root /etc/systemd/system/stage.csr.service.d/override.conf
sudo chmod 644 root:root /etc/systemd/system/stage.csr.service.d/override.conf
sudo chmod 644 /etc/systemd/system/stage.csr.service.d/override.conf
sudo systemctl daemon-reload && sudo service stage.csr stop
cp ~/csr /var/www/csr/stage/server
sudo service stage.csr start
sudo service stage.csr start

0 comments on commit c3ad121

Please sign in to comment.