From 8ff23b4775eddbf93d30eab4dddbc66d570e187e Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 14 Feb 2025 19:37:39 +0000 Subject: [PATCH] Fix config change and add js to copySM2 --- Targets/Nutups/_nut_CONFIG.html.ep | 4 ++-- Targets/Nutups/_nut_STATUS.html.ep | 4 ++-- Targets/Nutups/nutups.html.ep | 4 ++-- copySM2.sh | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Targets/Nutups/_nut_CONFIG.html.ep b/Targets/Nutups/_nut_CONFIG.html.ep index b84e179..7360067 100644 --- a/Targets/Nutups/_nut_CONFIG.html.ep +++ b/Targets/Nutups/_nut_CONFIG.html.ep @@ -7,7 +7,7 @@ SelectInput(); }; - % if ($config->{debug} == 1) { + % if (config->{debug} == 1) {
 			%= dumper $nut_data
 		
@@ -133,4 +133,4 @@ %# Probably finally by a submit. %end - \ No newline at end of file + diff --git a/Targets/Nutups/_nut_STATUS.html.ep b/Targets/Nutups/_nut_STATUS.html.ep index e03c415..e8ea7aa 100644 --- a/Targets/Nutups/_nut_STATUS.html.ep +++ b/Targets/Nutups/_nut_STATUS.html.ep @@ -7,7 +7,7 @@ SelectInput(); }; - % if ($config->{debug} == 1) { + % if (config->{debug} == 1) {
 			%= dumper $nut_data
 		
@@ -45,4 +45,4 @@ %# Probably finally by a submit. %end - \ No newline at end of file + diff --git a/Targets/Nutups/nutups.html.ep b/Targets/Nutups/nutups.html.ep index e4e3871..e15eade 100644 --- a/Targets/Nutups/nutups.html.ep +++ b/Targets/Nutups/nutups.html.ep @@ -8,7 +8,7 @@ %= javascript '/js/nutups.js'
- % if ($config->{debug} == 1) { + % if (config->{debug} == 1) {
 		%= dumper $c->current_route
 		%= dumper $nut_data->{trt}
@@ -55,4 +55,4 @@
 
 
 
-%end \ No newline at end of file +%end diff --git a/copySM2.sh b/copySM2.sh index 1d52876..ebb1e31 100755 --- a/copySM2.sh +++ b/copySM2.sh @@ -24,10 +24,11 @@ echo $cont_file #fi mkdir -p $REMOTE/lib/SrvMngr/Controller mkdir -p $REMOTE/themes/default/templates/partials/ -mkdir -p $REMOTE/lib/SrvMngr/I18N/Modules/Nfsshare -mkdir -p $REMOTE/themes/default/templates/ +mkdir -p $REMOTE/themes/default/public/css +mkdir -p $REMOTE/themes/default/public/js cp -fv *.pm $REMOTE/lib/SrvMngr/Controller cp -fv *.css $REMOTE/themes/default/public/css +cp -fv *.js $REMOTE/themes/default/public/js cp -fv _$2*.html.ep $REMOTE/themes/default/templates/partials/ find . -maxdepth 1 -type f -name "[!_]*\.ep" | xargs -I% bash -c 'cp -fv % $REMOTE/themes/default/templates/' mkdir -p $REMOTE/lib/SrvMngr/I18N/Modules/$3