Старый postinstall
This commit is contained in:
commit
4337a3f94e
349 changed files with 21945 additions and 0 deletions
3
deb_dist/postinstall-1.5.0/deb/0002-postinstall.sh
Normal file
3
deb_dist/postinstall-1.5.0/deb/0002-postinstall.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if [ -n "$PS1" ]; then
|
||||
[ -f /usr/share/postinstall/.norestart ] || ( su -c /usr/bin/postinstall && clear )
|
||||
fi
|
||||
12
deb_dist/postinstall-1.5.0/deb/postinst
Executable file
12
deb_dist/postinstall-1.5.0/deb/postinst
Executable 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
|
||||
|
||||
10
deb_dist/postinstall-1.5.0/deb/postinstall-autostart.desktop
Normal file
10
deb_dist/postinstall-1.5.0/deb/postinstall-autostart.desktop
Normal 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_dist/postinstall-1.5.0/deb/postinstall.desktop
Normal file
9
deb_dist/postinstall-1.5.0/deb/postinstall.desktop
Normal 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_dist/postinstall-1.5.0/deb/postinstall.service
Normal file
15
deb_dist/postinstall-1.5.0/deb/postinstall.service
Normal 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_dist/postinstall-1.5.0/deb/postinstall_start.sh
Executable file
2
deb_dist/postinstall-1.5.0/deb/postinstall_start.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
exec /usr/bin/postinstall
|
||||
BIN
deb_dist/postinstall-1.5.0/deb/python3-textual_0.1.13-1_all.deb
Normal file
BIN
deb_dist/postinstall-1.5.0/deb/python3-textual_0.1.13-1_all.deb
Normal file
Binary file not shown.
BIN
deb_dist/postinstall-1.5.0/deb/textual-0.72.0-py3-none-any.whl
Normal file
BIN
deb_dist/postinstall-1.5.0/deb/textual-0.72.0-py3-none-any.whl
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue