storagepanel: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-26 16:22:25 +02:00
parent 6023b700d1
commit 5c57896a97

View File

@ -17,17 +17,25 @@ if [ "${1}" = "late" ]; then
shift shift
mkdir -p "/tmpRoot/usr/lib/systemd/system" mkdir -p "/tmpRoot/usr/lib/systemd/system"
DEST="/tmpRoot/usr/lib/systemd/system/storagepanel.service" DEST="/tmpRoot/usr/lib/systemd/system/storagepanel.service"
echo "[Unit]" >${DEST} cat > ${DEST} <<EOF
echo "Description=Modify storage panel" >>${DEST} [Unit]
echo "After=multi-user.target" >>${DEST} Description=Modify storage panel
echo >>${DEST} DefaultDependencies=no
echo "[Service]" >>${DEST} IgnoreOnIsolate=true
echo "Type=oneshot" >>${DEST} After=multi-user.target
echo "RemainAfterExit=yes" >>${DEST}
echo "ExecStart=/usr/bin/storagepanel.sh $@" >>${DEST} [Service]
echo >>${DEST} User=root
echo "[Install]" >>${DEST} Type=oneshot
echo "WantedBy=multi-user.target" >>${DEST} RemainAfterExit=yes
ExecStart=/usr/bin/storagepanel.sh $@
[Install]
WantedBy=multi-user.target
[X-Synology]
Author=Virtualization Team
EOF
mkdir -vp /tmpRoot/usr/lib/systemd/system/multi-user.target.wants mkdir -vp /tmpRoot/usr/lib/systemd/system/multi-user.target.wants
ln -vsf /usr/lib/systemd/system/storagepanel.service /tmpRoot/usr/lib/systemd/system/multi-user.target.wants/storagepanel.service ln -vsf /usr/lib/systemd/system/storagepanel.service /tmpRoot/usr/lib/systemd/system/multi-user.target.wants/storagepanel.service