Старый postinstall

This commit is contained in:
commit 4337a3f94e
349 changed files with 21945 additions and 0 deletions

3
deb/0002-postinstall.sh Normal file
View file

@ -0,0 +1,3 @@
if [ -n "$PS1" ]; then
[ -f /usr/share/postinstall/.norestart ] || ( su -c /usr/bin/postinstall && clear )
fi

12
deb/postinst Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
mkdir -p /var/lib/postinstall
if [ ! -f /var/lib/postinstall/first_run_done ]; then
chmod +x /usr/share/postinstall/postinstall_start.sh
cp /usr/share/postinstall/postinstall.service /etc/systemd/system/
systemctl enable postinstall.service
pip install --upgrade textual --break-system-packages
fi

View file

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=PostInstall
Comment=Textual TUI Application for Network Configuration
Exec=pkexec /usr/bin/postinstall
Icon=postinstall
Terminal=true
Type=Application
Categories=Utility;Network;
X-GNOME-Autostart-enabled=true

9
deb/postinstall.desktop Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=PostInstall
Comment=Textual TUI Application for Network Configuration
Exec=pkexec /usr/bin/postinstall
Icon=postinstall
Terminal=true
Type=Application
Categories=Utility;Network;

15
deb/postinstall.service Normal file
View file

@ -0,0 +1,15 @@
[Unit]
Description=Postinstall TUI Application
After=network.target
[Service]
ExecStart=/usr/bin/postinstall
Restart=always
User=root
Environment=PYTHONUNBUFFERED=1
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty
[Install]
WantedBy=multi-user.target

2
deb/postinstall_start.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/bin/postinstall

Binary file not shown.

Binary file not shown.