Browse Source

add systemd service for postinstall

website
axk4545 7 years ago
parent
commit
6ef9708897
4 changed files with 12 additions and 12 deletions
  1. BIN
      packages/tigeros-scripts-1.0-1.fc25.src.rpm
  2. +2
    -1
      scripts/postinstall
  3. +9
    -0
      scripts/tigeros-setup.service
  4. +1
    -11
      tigeros.ks

BIN
packages/tigeros-scripts-1.0-1.fc25.src.rpm View File


+ 2
- 1
scripts/postinstall View File

@ -11,9 +11,10 @@ then
exit
fi
echo -e "Welcome to the TigerOS post install script.\n
This script will walk you through initial configuration if TigerOS including installing a set of packages used for classes in your major."
This script will walk you through initial configuration of TigerOS including installing a set of packages used for classes in your major."
echo -e "\n"
sleep 5;
systemctl mask tigeros-setup.service
bash /usr/local/bin/enablerpmfusion
PS3='Please enter your major: '
options=("CS" "IT/WMC" "NSSA/CIT" "SE" "Quit")

+ 9
- 0
scripts/tigeros-setup.service View File

@ -0,0 +1,9 @@
[Desktop Entry]
Description=installs major-specific programs
[Service]
ExecStart=gnome-terminal -e "/usr/share/tigeros/postinstall"
[Install]
WantedBy=multi-user.target

+ 1
- 11
tigeros.ks View File

@ -355,17 +355,7 @@ restorecon -R /home/liveuser
EOF
# Fetch scripts
mkdir -p /usr/share/autostart
chmod +x /usr/local/bin/*
cat > /etc/xdg/autostart/postinstall.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=TigerOS postinstall script
Comment=
Exec=gnome-terminal -e "sudo /usr/share/tigeros/postinstall"
Terminal=false
EOF
chmod +x /usr/local/bin/\*
restorecon -R /usr/local/bin
%end

Loading…
Cancel
Save