Update egg-discord-js-generic.json
Added uninstall node packages + startup for it
This commit is contained in:
		| @@ -17,7 +17,7 @@ | |||||||
|         "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-10" |         "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-10" | ||||||
|     ], |     ], | ||||||
|     "file_denylist": [], |     "file_denylist": [], | ||||||
|     "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm install ${NODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then  \/usr\/local\/bin\/npm install; fi; \/usr\/local\/bin\/node \/home\/container\/{{BOT_JS_FILE}}", |     "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then \/usr\/local\/bin\/npm install; fi; \/usr\/local\/bin\/node \/home\/container\/{{BOT_JS_FILE}}", | ||||||
|     "config": { |     "config": { | ||||||
|         "files": "{}", |         "files": "{}", | ||||||
|         "startup": "{\r\n    \"done\": \"change this part\"\r\n}", |         "startup": "{\r\n    \"done\": \"change this part\"\r\n}", | ||||||
| @@ -86,6 +86,15 @@ | |||||||
|             "user_editable": true, |             "user_editable": true, | ||||||
|             "rules": "nullable|string" |             "rules": "nullable|string" | ||||||
|         }, |         }, | ||||||
|  |         { | ||||||
|  |             "name": "Uninstall Node packages", | ||||||
|  |             "description": "Uninstall node packages.\r\n\r\nUse spaces to separate.", | ||||||
|  |             "env_variable": "UNNODE_PACKAGES", | ||||||
|  |             "default_value": "", | ||||||
|  |             "user_viewable": true, | ||||||
|  |             "user_editable": true, | ||||||
|  |             "rules": "nullable|string" | ||||||
|  |         }, | ||||||
|         { |         { | ||||||
|             "name": "Git Username", |             "name": "Git Username", | ||||||
|             "description": "Username to auth with git.", |             "description": "Username to auth with git.", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user