Creating script which runs on first startup only. This is used to copy /etc/skel files to first user's home directory.

This commit is contained in:
Roland 2024-06-18 16:17:54 -06:00
parent e18b1b0552
commit 336ef1abb4
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=Run script at first startup
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/opt/wrolpi/wrolpi/scripts/first_startup.sh
RemainAfterExit=true
StandardOutput=journal
[Install]
WantedBy=multi-user.target