Updates for sample dynamic app

This commit is contained in:
Taylor Helsper 2022-04-20 23:07:49 -05:00
parent 9ec7d30be0
commit cba62f1876
5 changed files with 62 additions and 5 deletions

View File

@ -1,7 +1,14 @@
{
"name": "LNDg",
"short_name": "lndg",
"latest_version": "v0.0.1",
"latest_version": "v1.0.5",
"linux_user": "lndg",
"targz_download_url": "https://github.com/cryptosharks131/lndg/archive/refs/tags/{APP_VERSION}.tar.gz",
"app_install_folder": "/opt/mynode/{SHORT_NAME}",
"app_storage_folder": "/mnt/hdd/mynode/{SHORT_NAME}",
"app_install_env_vars": [{"var1":"val2", "var2": "val2"}],
"http_port": "8889",
"https_port": "8890",
"requires_lightning": true,
"hide_status_icon": false,
"app_tile_default_status_text": "Lightning Tool",
@ -10,8 +17,8 @@
"app_tile_button_text": "Info",
"can_uninstall": true,
"can_enable_disable": true,
"show_on_application_page": false,
"show_on_homepage": false,
"show_on_application_page": true,
"show_on_homepage": true,
"port": 3000,
"homepage_order": 99
}

View File

@ -9,9 +9,9 @@ After=www.service docker_images.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/bin/bash -c 'if [ -f /usr/bin/service_scripts/pre_lndg.sh ]; then /bin/bash /usr/bin/service_scripts/pre_lndg.sh; fi'
ExecStart=/usr/bin/docker run --rm --name webssh2 -p 2222:2222 -v /opt/mynode/webssh2/config.json:/usr/src/config.json webssh2
ExecStart=TODO
ExecStartPost=/bin/bash -c 'if [ -f /usr/bin/service_scripts/post_lndg.sh ]; then /bin/bash /usr/bin/service_scripts/post_lndg.sh; fi'
ExecStop=/usr/bin/docker stop -t 2 webssh2
ExecStop=TODO
# Need new user
User=root

View File

@ -0,0 +1,17 @@
server {
listen 8890 ssl;
server_name lndg;
include /etc/nginx/mynode/mynode_ssl_params.conf;
include /etc/nginx/mynode/mynode_ssl_cert_key.conf;
access_log /var/log/nginx/access_lndg.log;
error_log /var/log/nginx/error_lndg.log;
location / {
proxy_pass http://127.0.0.1:8889;
include /etc/nginx/mynode/mynode_ssl_proxy_params.conf;
}
}

View File

@ -0,0 +1,20 @@
# Helpful variables to add:
# VERSION?
# DOWNLOAD PATH TO TAR.GZ?
# PATH TO SD CARD FOLDER
# PATH TO DATA DRIVE FOLDER
#
echo "INSTALLING LNDG - START"
whoami
id
sleep 3s
pwd
ls -lsa
sleep 3s
echo "INSTALLING LNDG - END"

View File

@ -0,0 +1,13 @@
echo "UNINSTALLING LNDG - START"
whoami
id
sleep 3s
pwd
ls -lsa
sleep 3s
echo "UNINSTALLING LNDG - END"