diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/lndg.json b/rootfs/standard/usr/share/mynode_apps/lndg/lndg.json index 10c67aca..b38eb1a4 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/lndg.json +++ b/rootfs/standard/usr/share/mynode_apps/lndg/lndg.json @@ -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 } \ No newline at end of file diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/lndg.service b/rootfs/standard/usr/share/mynode_apps/lndg/lndg.service index 6909657f..188035c1 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/lndg.service +++ b/rootfs/standard/usr/share/mynode_apps/lndg/lndg.service @@ -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 diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/nginx/https_lndg.conf b/rootfs/standard/usr/share/mynode_apps/lndg/nginx/https_lndg.conf new file mode 100644 index 00000000..6187ef5b --- /dev/null +++ b/rootfs/standard/usr/share/mynode_apps/lndg/nginx/https_lndg.conf @@ -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; + } + +} \ No newline at end of file diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh index e69de29b..080e02b5 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh +++ b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh @@ -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" \ No newline at end of file diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/uninstall_lndg.sh b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/uninstall_lndg.sh index e69de29b..81ea1bf1 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/uninstall_lndg.sh +++ b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/uninstall_lndg.sh @@ -0,0 +1,13 @@ +echo "UNINSTALLING LNDG - START" + +whoami +id + +sleep 3s + +pwd +ls -lsa + +sleep 3s + +echo "UNINSTALLING LNDG - END" \ No newline at end of file