Browse Source

addtional logs in script

abhishek9686 1 year ago
parent
commit
487c3f51b0
2 changed files with 3 additions and 1 deletions
  1. 1 0
      pro/initialize.go
  2. 2 1
      scripts/nm-quick.sh

+ 1 - 0
pro/initialize.go

@@ -69,6 +69,7 @@ func InitPro() {
 			// == End License Handling ==
 			// == End License Handling ==
 			AddLicenseHooks()
 			AddLicenseHooks()
 		} else {
 		} else {
+			slog.Info("starting trial license hook")
 			addTrialLicenseHook()
 			addTrialLicenseHook()
 		}
 		}
 
 

+ 2 - 1
scripts/nm-quick.sh

@@ -16,7 +16,6 @@ unset INSTALL_TYPE
 unset BUILD_TAG
 unset BUILD_TAG
 unset IMAGE_TAG
 unset IMAGE_TAG
 unset NETMAKER_BASE_DOMAIN
 unset NETMAKER_BASE_DOMAIN
-INSTALL_TYPE="pro"
 # usage - displays usage instructions
 # usage - displays usage instructions
 usage() {
 usage() {
 	echo "nm-quick.sh v$NM_QUICK_VERSION"
 	echo "nm-quick.sh v$NM_QUICK_VERSION"
@@ -746,11 +745,13 @@ main (){
 		INSTALL_TYPE="ce"
 		INSTALL_TYPE="ce"
 		;;
 		;;
 	u)
 	u)
+		echo "upgrading to pro version..."
 		INSTALL_TYPE="pro"
 		INSTALL_TYPE="pro"
 		upgrade
 		upgrade
 		exit 0
 		exit 0
 		;;
 		;;
 	d) 
 	d) 
+		echo "downgrading to community version..."
 		INSTALL_TYPE="ce"
 		INSTALL_TYPE="ce"
 		downgrade
 		downgrade
 		exit 0
 		exit 0