Code refactoring

pull/1433/head
tteckster 2 years ago committed by GitHub
parent b09f213c84
commit c12f2773e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      install/adguard-install.sh
  2. 2
      install/alpine-adguard-install.sh
  3. 2
      install/alpine-docker-install.sh
  4. 2
      install/alpine-grafana-install.sh
  5. 2
      install/alpine-vaultwarden-install.sh
  6. 2
      install/alpine-whoogle-install.sh
  7. 2
      install/alpine-zigbee2mqtt-install.sh
  8. 2
      install/audiobookshelf-install.sh
  9. 2
      install/autobrr-install.sh
  10. 3
      install/bazarr-install.sh
  11. 2
      install/blocky-install.sh
  12. 3
      install/casaos-install.sh
  13. 2
      install/changedetection-install.sh
  14. 2
      install/cloudflared-install.sh
  15. 2
      install/cronicle-install.sh
  16. 2
      install/daemonsync-install.sh
  17. 2
      install/dashy-install.sh
  18. 2
      install/debian-install.sh
  19. 2
      install/deconz-install.sh
  20. 2
      install/deluge-install.sh
  21. 2
      install/devuan-install.sh
  22. 2
      install/docker-install.sh
  23. 4
      install/emby-install.sh
  24. 2
      install/emqx-install.sh
  25. 2
      install/esphome-install.sh
  26. 2
      install/fhem-install.sh
  27. 2
      install/go2rtc-install.sh
  28. 2
      install/grafana-install.sh
  29. 3
      install/grocy-install.sh
  30. 2
      install/heimdalldashboard-install.sh
  31. 2
      install/homeassistant-core-install.sh
  32. 2
      install/homeassistant-install.sh
  33. 2
      install/homebridge-install.sh
  34. 2
      install/homepage-install.sh
  35. 3
      install/homer-install.sh
  36. 2
      install/hyperion-install.sh
  37. 2
      install/influxdb-install.sh
  38. 2
      install/iobroker-install.sh
  39. 2
      install/jackett-install.sh
  40. 4
      install/jellyfin-install.sh
  41. 2
      install/k0s-install.sh
  42. 2
      install/kavita-install.sh
  43. 2
      install/keycloak-install.sh
  44. 2
      install/lidarr-install.sh
  45. 2
      install/magicmirror-install.sh
  46. 2
      install/mariadb-install.sh
  47. 2
      install/meshcentral-install.sh
  48. 2
      install/motioneye-install.sh
  49. 2
      install/mqtt-install.sh
  50. 2
      install/n8n-install.sh
  51. 2
      install/navidrome-install.sh
  52. 2
      install/nextcloudpi-install.sh
  53. 2
      install/nginxproxymanager-install.sh
  54. 2
      install/nocodb-install.sh
  55. 2
      install/node-red-install.sh
  56. 2
      install/octoprint-install.sh
  57. 2
      install/omada-install.sh
  58. 2
      install/omv-install.sh
  59. 2
      install/openhab-install.sh
  60. 4
      install/paperless-ngx-install.sh
  61. 3
      install/photoprism-install.sh
  62. 2
      install/pihole-install.sh
  63. 4
      install/plex-install.sh
  64. 2
      install/podman-homeassistant-install.sh
  65. 2
      install/podman-install.sh
  66. 2
      install/postgresql-install.sh
  67. 2
      install/prometheus-install.sh
  68. 2
      install/prowlarr-install.sh
  69. 2
      install/qbittorrent-install.sh
  70. 2
      install/radarr-install.sh
  71. 2
      install/readarr-install.sh
  72. 2
      install/rstptoweb-install.sh
  73. 3
      install/sabnzbd-install.sh
  74. 2
      install/scrypted-install.sh
  75. 2
      install/shinobi-install.sh
  76. 2
      install/sonarr-install.sh
  77. 2
      install/syncthing-install.sh
  78. 2
      install/tautulli-install.sh
  79. 3
      install/tdarr-install.sh
  80. 2
      install/technitiumdns-install.sh
  81. 2
      install/transmission-install.sh
  82. 2
      install/trilium-install.sh
  83. 2
      install/ubuntu-install.sh
  84. 2
      install/umbrel-install.sh
  85. 2
      install/unifi-install.sh
  86. 2
      install/uptimekuma-install.sh
  87. 2
      install/vaultwarden-install.sh
  88. 2
      install/whisparr-install.sh
  89. 2
      install/whoogle-install.sh
  90. 2
      install/wikijs-install.sh
  91. 2
      install/wireguard-install.sh
  92. 2
      install/yunohost-install.sh
  93. 2
      install/zigbee2mqtt-install.sh
  94. 3
      install/zwave-js-ui-install.sh
  95. 6
      misc/alpine-install.func
  96. 2
      misc/build.func
  97. 6
      misc/install.func

@ -29,7 +29,7 @@ rm install.sh
msg_ok "Installed AdGuard Home"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -33,4 +33,4 @@ $STD /opt/AdGuardHome/AdGuardHome -s start
msg_ok "Installed Alpine-AdGuard"
motd_ssh
root
customize

@ -59,4 +59,4 @@ if echo "$prompt" | grep -Eq "^(y|yes)$"; then
fi
motd_ssh
root
customize

@ -29,4 +29,4 @@ $STD rc-update add grafana default
msg_ok "Installed Grafana"
motd_ssh
root
customize

@ -37,4 +37,4 @@ $STD rc-update add vaultwarden default
msg_ok "Installed Alpine-Vaultwarden"
motd_ssh
root
customize

@ -49,4 +49,4 @@ rc-update add -q whoogle default
msg_ok "Installed Alpine-Whoogle"
motd_ssh
root
customize

@ -26,4 +26,4 @@ $STD apk add zigbee2mqtt
msg_ok "Installed Alpine-Zigbee2MQTT"
motd_ssh
root
customize

@ -28,7 +28,7 @@ $STD apt install audiobookshelf
msg_ok "Installed audiobookshelf"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -49,7 +49,7 @@ systemctl enable --now -q autobrr.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y unzip
$STD apt-get install -y python3-pip
msg_ok "Installed Dependencies"
@ -53,7 +52,7 @@ systemctl enable -q --now bazarr
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf bazarr.zip

@ -282,7 +282,7 @@ $STD systemctl enable --now blocky
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y unzip
msg_ok "Installed Dependencies"
msg_info "Installing CasaOS (Patience)"
@ -37,7 +36,7 @@ $STD bash <(curl -fsSL https://get.casaos.io)
msg_ok "Installed CasaOS"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -43,7 +43,7 @@ $STD systemctl enable --now changedetection
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -28,7 +28,7 @@ $STD apt-get install -y cloudflared
msg_ok "Installed Cloudflared"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -48,7 +48,7 @@ $STD update-rc.d cronicled defaults
msg_ok "Installed Cronicle Primary Server"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -26,7 +26,7 @@ $STD dpkg -i daemonsync_2.2.0.0059_amd64.deb
msg_ok "Installed Daemon Sync Server"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf daemonsync_2.2.0.0059_amd64.deb

@ -57,7 +57,7 @@ systemctl start dashy
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -20,7 +20,7 @@ $STD apt-get install -y mc
msg_ok "Installed Dependencies"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -50,7 +50,7 @@ $STD systemctl enable --now deconz
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -65,7 +65,7 @@ systemctl enable --now -q deluge-web.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -20,7 +20,7 @@ $STD apt-get install -y mc
msg_ok "Installed Dependencies"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -69,7 +69,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
fi
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -19,7 +19,7 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \
va-driver-all \
@ -43,7 +43,7 @@ $STD dpkg -i emby-server-deb_${LATEST}_amd64.deb
msg_ok "Installed Emby"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -26,7 +26,7 @@ $STD systemctl enable --now emqx
msg_ok "Installed EMQX"
motd_ssh
root
customize
msg_info "Cleaning up"
apt-get autoremove >/dev/null

@ -46,7 +46,7 @@ systemctl start esphomeDashboard
msg_ok "Installed ESPHome Dashboard"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -32,7 +32,7 @@ $STD apt-get install -y fhem
msg_info "Installed Fhem"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -43,7 +43,7 @@ systemctl enable -q --now go2rtc
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -35,7 +35,7 @@ systemctl enable --now -q grafana-server.service
msg_ok "Installed Grafana"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -18,7 +18,6 @@ $STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y apache2
$STD apt-get install -y unzip
$STD apt-get install -y apt-transport-https
$STD apt-get install -y lsb-release
msg_ok "Installed Dependencies"
@ -63,7 +62,7 @@ systemctl reload apache2
msg_ok "Installed grocy"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -58,7 +58,7 @@ $STD sudo systemctl enable --now heimdall.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -100,7 +100,7 @@ $STD systemctl enable --now homeassistant
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -84,7 +84,7 @@ $STD docker run -d \
msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -32,7 +32,7 @@ $STD apt-get install -y homebridge
msg_info "Installed Homebridge"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -58,7 +58,7 @@ $STD systemctl enable --now homepage
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y unzip
$STD apt-get install -y pip
msg_ok "Installed Dependencies"
@ -46,7 +45,7 @@ $STD systemctl enable --now homer
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -31,7 +31,7 @@ $STD systemctl enable --now hyperion@root.service
msg_ok "Installed Hyperion"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove >/dev/null

@ -55,7 +55,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
fi
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -24,7 +24,7 @@ $STD bash <(curl -fsSL https://iobroker.net/install.sh)
msg_ok "Installed ioBroker"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -46,7 +46,7 @@ systemctl enable -q --now jackett.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -20,7 +20,7 @@ $STD apt-get install -y gnupg
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \
va-driver-all \
@ -59,7 +59,7 @@ $STD apt-get install -y jellyfin
msg_ok "Installed Jellyfin"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -35,7 +35,7 @@ $STD bash <(curl -sSLf https://raw.githubusercontent.com/helm/helm/main/scripts/
msg_ok "Installed Helm"
fi
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -46,7 +46,7 @@ systemctl enable --now -q kavita.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -43,7 +43,7 @@ $STD systemctl enable --now keycloak.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -51,7 +51,7 @@ systemctl enable --now -q lidarr
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf Lidarr.master.*.tar.gz

@ -148,7 +148,7 @@ $STD systemctl enable --now magicmirror
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -35,7 +35,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
fi
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -35,7 +35,7 @@ $STD node node_modules/meshcentral --install
msg_ok "Installed MeshCentral"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -51,7 +51,7 @@ systemctl enable -q --now motioneye
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -31,7 +31,7 @@ $STD apt-get -y install mosquitto-clients
msg_ok "Installed Mosquitto MQTT Broker"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -46,7 +46,7 @@ $STD systemctl enable --now n8n
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -75,7 +75,7 @@ $STD systemctl enable --now navidrome.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -28,7 +28,7 @@ service apache2 restart
msg_ok "Installed NextCloudPi"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -182,7 +182,7 @@ EOF
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Starting Services"
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf

@ -53,7 +53,7 @@ systemctl enable --now nocodb.service &>/dev/null
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -56,7 +56,7 @@ $STD systemctl enable --now nodered.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -69,7 +69,7 @@ systemctl enable -q --now octoprint.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -30,7 +30,7 @@ $STD dpkg -i Omada_SDN_Controller_v5.9.31_Linux_x64.deb
msg_ok "Installed Omada Controller"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -f Omada_SDN_Controller_v5.9.31_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb

@ -42,7 +42,7 @@ omv-confdbadm populate
msg_ok "Installed OpenMediaVault"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -41,7 +41,7 @@ $STD systemctl enable --now openhab.service
msg_ok "Installed openHAB"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -27,7 +27,7 @@ $STD apt-get install -y --no-install-recommends \
redis \
postgresql \
build-essential \
imagemagick \
imagemagick \
fonts-liberation \
optipng \
gnupg \
@ -192,7 +192,7 @@ $STD systemctl enable --now paperless-consumer paperless-webserver paperless-sch
msg_ok "Created Services"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -23,7 +23,6 @@ $STD apt-get install -y git
$STD apt-get install -y gnupg
$STD apt-get install -y make
$STD apt-get install -y zip
$STD apt-get install -y unzip
$STD apt-get install -y exiftool
$STD apt-get install -y ffmpeg
msg_ok "Installed Dependencies"
@ -119,7 +118,7 @@ WantedBy=multi-user.target" >$service_path
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -46,7 +46,7 @@ $STD bash <(curl -fsSL https://install.pi-hole.net) /dev/stdin --unattended
msg_ok "Installed Pi-hole"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -19,7 +19,7 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc
msg_ok "Installed Dependencies"
if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
if [[ "$CTTYPE" == "0" ]]; then
msg_info "Setting Up Hardware Acceleration"
$STD apt-get -y install \
va-driver-all \
@ -46,7 +46,7 @@ $STD apt-get -o Dpkg::Options::="--force-confold" install -y plexmediaserver
msg_ok "Installed Plex Media Server"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -46,7 +46,7 @@ $STD systemctl enable --now homeassistant
msg_ok "Installed Home Assistant"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -26,7 +26,7 @@ echo -e 'unqualified-search-registries=["docker.io"]' >> /etc/containers/registr
msg_ok "Installed Podman"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -142,7 +142,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
fi
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -55,7 +55,7 @@ $STD sudo systemctl enable --now prometheus
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -49,7 +49,7 @@ systemctl enable --now -q prowlarr
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf Prowlarr.master.*.tar.gz

@ -38,7 +38,7 @@ systemctl enable -q --now qbittorrent-nox
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -49,7 +49,7 @@ systemctl enable --now -q radarr
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf Radarr.master.*.tar.gz

@ -49,7 +49,7 @@ systemctl enable --now -q readarr
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf Readarr.develop.*.tar.gz

@ -53,7 +53,7 @@ systemctl enable -q --now rtsptoweb
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y unzip
$STD apt-get install -y par2
$STD apt-get install -y p7zip-full
wget -q http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/unrar_6.0.3-1+deb11u1_amd64.deb
@ -54,7 +53,7 @@ systemctl enable --now -q sabnzbd.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -110,7 +110,7 @@ $STD systemctl enable --now scrypted.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -82,7 +82,7 @@ $STD pm2 list
msg_ok "Installed Shinobi"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -29,7 +29,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" inst
msg_ok "Installed Sonarr"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -33,7 +33,7 @@ systemctl restart syncthing@root.service
msg_ok "Installed Syncthing"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -50,7 +50,7 @@ systemctl enable -q --now tautulli
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y unzip
msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
@ -90,7 +89,7 @@ systemctl enable --now -q tdarr-node.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf Tdarr_Updater.zip

@ -35,7 +35,7 @@ $STD bash <(curl -fsSL https://download.technitium.com/dns/install.sh)
msg_ok "Installed Technitium DNS"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -28,7 +28,7 @@ systemctl start transmission-daemon
msg_ok "Installed Transmission"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -50,7 +50,7 @@ systemctl enable --now -q trilium
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -20,7 +20,7 @@ $STD apt-get install -y mc
msg_ok "Installed Dependencies"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -38,7 +38,7 @@ $STD systemctl enable --now umbrel-startup.service
msg_ok "Installed Umbrel"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -38,7 +38,7 @@ $STD apt-get install -y unifi
msg_ok "Installed UniFi Network Application"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf mongodb-org-server_3.6.23_amd64.deb

@ -53,7 +53,7 @@ $STD systemctl enable --now uptime-kuma.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -111,7 +111,7 @@ $STD systemctl enable --now vaultwarden.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -49,7 +49,7 @@ systemctl enable --now -q whisparr
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm -rf Whisparr.develop.*.tar.gz

@ -42,7 +42,7 @@ $STD systemctl enable --now whoogle.service
msg_ok "Installed Whoogle"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -70,7 +70,7 @@ $STD systemctl enable --now wikijs
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -41,7 +41,7 @@ $STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf
msg_ok "Installed WireGuard"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -30,7 +30,7 @@ $STD bash <(curl -fsSL https://install.yunohost.org) -a
msg_ok "Installed YunoHost"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -69,7 +69,7 @@ $STD systemctl enable zigbee2mqtt.service
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
$STD apt-get autoremove

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y unzip
msg_ok "Installed Dependencies"
msg_info "Installing Z-Wave JS UI"
@ -45,7 +44,7 @@ $STD systemctl enable zwave-js-ui
msg_ok "Created Service"
motd_ssh
root
customize
msg_info "Cleaning up"
rm zwave-js-ui-${RELEASE}-linux.zip

@ -117,13 +117,9 @@ motd_ssh() {
}
customize() {
if [[ "$PASSWORD" == "" ]]; then
msg_info "Customizing Container"
bash -c "passwd -d root" >/dev/null 2>&1
msg_ok "Customized Container"
}
root() {
if ! getent shadow root | grep -q '^root:[^:]*:\?\$'; then
customize
fi
}

@ -169,7 +169,7 @@ advanced_settings() {
if PW1=$(whiptail --inputbox "\nSet Root Password (needed for root ssh access)" 9 58 --title "PASSWORD(leave blank for automatic login)" 3>&1 1>&2 2>&3); then
if [ -z $PW1 ]; then
PW1="Automatic Login"
PW=" "
PW=""
else
PW="-password $PW1"
fi

@ -116,6 +116,7 @@ motd_ssh() {
}
customize() {
if [[ "$PASSWORD" == "" ]]; then
msg_info "Customizing Container"
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
mkdir -p $(dirname $GETTY_OVERRIDE)
@ -127,10 +128,5 @@ EOF
systemctl daemon-reload
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg_ok "Customized Container"
}
root() {
if ! getent shadow root | grep -q "^root:[^\!*]"; then
customize
fi
}
Loading…
Cancel
Save