Remove Systemd block #40
|
|
@ -53,15 +53,6 @@ USER="opengnsys"
|
||||||
# done
|
# done
|
||||||
# "
|
# "
|
||||||
if [ "$1" = "configure" ] && [ -z "$2" ]; then
|
if [ "$1" = "configure" ] && [ -z "$2" ]; then
|
||||||
systemd-run --no-block /bin/bash -c "
|
|
||||||
sleep 10;
|
|
||||||
apt update -y;
|
|
||||||
for pkg in bittorrent bittornado ctorrent; do
|
|
||||||
if ! dpkg -l | grep -qw \"\$pkg\"; then
|
|
||||||
apt install -y \"\$pkg\"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
"
|
|
||||||
|
|
||||||
sed -i "s/%%OGREPOSITORY_USER%%/$SAMBA_USER/g" /etc/systemd/system/ogrepo-api.service
|
sed -i "s/%%OGREPOSITORY_USER%%/$SAMBA_USER/g" /etc/systemd/system/ogrepo-api.service
|
||||||
sed -i "s/%%OGREPOSITORY_USER%%/$SAMBA_USER/g" /etc/samba/ogrepo-smb.conf
|
sed -i "s/%%OGREPOSITORY_USER%%/$SAMBA_USER/g" /etc/samba/ogrepo-smb.conf
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue