Do not alter source service during build

Closes #31
This commit is contained in:
Greizgh
2021-04-17 18:15:19 +02:00
parent 22c1c3ce24
commit 92d02edd21
3 changed files with 2 additions and 0 deletions
+1
View File
@@ -64,6 +64,7 @@ sed -i "s/Architecture:.*/Architecture: $ARCH/" "$CONTROL"
# Prepare Systemd-unit
SYSTEMD_UNIT="$DIR/debian/bitwarden_rs.service"
cp "$DIR/service.dist" "$SYSTEMD_UNIT"
if [ "$DB_TYPE" = "mysql" ]; then
sed -i "s/After=network.target/After=network.target mysqld.service\nRequires=mysqld.service/g" "$SYSTEMD_UNIT"
elif [ "$DB_TYPE" = "postgresql" ]; then