mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
storagepanel: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
6023b700d1
commit
5c57896a97
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user