Skip to content

Commit

Permalink
Update customize-image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha authored Oct 20, 2024
1 parent d6a257d commit a846fe4
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions userpatches/customize-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,21 @@ fxBloxCustomScriptService()
touch /etc/systemd/system/fxBlox_custom_script_service.service

cat > /etc/systemd/system/fxBlox_custom_script_service.service <<- EOF
[Unit]
Description=fxBlox_custom_script_service service
After=multi-user.target
[Service]
User=root
Group=root
ExecStart=/bin/bash /usr/bin/fxBlox_custom_script_service.sh
Type=simple
[Install]
WantedBy=multi-user.target
[Unit]
Description=fxBlox custom script service
After=multi-user.target network.target
ConditionPathExists=/root/.fxBlox_custom_script_service
[Service]
Type=oneshot
User=root
Group=root
ExecStart=/bin/bash /usr/bin/fxBlox_custom_script_service.sh
RemainAfterExit=yes
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target
EOF
systemctl --no-reload enable fxBlox_custom_script_service.service

Expand Down

0 comments on commit a846fe4

Please sign in to comment.