amepatch: loop until ame is installed

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-19 20:42:41 +02:00
parent c48bbb44f3
commit 45c980aaa7
2 changed files with 11 additions and 5 deletions

View File

@ -81,5 +81,8 @@ if [ -d "/var/packages/CodecPack" ]; then
echo -e "AME Patch: Backup restored!" echo -e "AME Patch: Backup restored!"
exit 1 exit 1
fi fi
fi exit 0
exit 0 else
echo -e "AME Patch: CodecPack not found!"
exit 1
fi

View File

@ -80,9 +80,12 @@ if [ -d /var/packages/SurveillanceStation ]; then
chown SurveillanceStation:SurveillanceStation "${PATHSCRIPTS}/license.sh" chown SurveillanceStation:SurveillanceStation "${PATHSCRIPTS}/license.sh"
chmod 0777 "${PATHSCRIPTS}/license.sh" chmod 0777 "${PATHSCRIPTS}/license.sh"
echo -e "Surveillance Patch: Successfull!" echo -e "SSPatch: Successfull!"
sleep 5 sleep 5
/usr/syno/bin/synopkg start SurveillanceStation /usr/syno/bin/synopkg start SurveillanceStation
fi exit 0
exit 0 else
echo "SSPatch: SurveillanceStation not found"
exit 1
fi