push changes
This commit is contained in:
@@ -13,7 +13,7 @@ Base URL: **https://gitea.linuxiarz.pl/gru/npm-angie-auto-install**
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- Debian 12+ / Ubuntu 20.04+
|
- Debian 11+ / Ubuntu 20.04+
|
||||||
- `curl`, `python3`, `sudo`
|
- `curl`, `python3`, `sudo`
|
||||||
- Network access to fetch packages and Node/Yarn artifacts.
|
- Network access to fetch packages and Node/Yarn artifacts.
|
||||||
- ~2 GB RAM (recommended) or add 2 GB swap for safer frontend builds.
|
- ~2 GB RAM (recommended) or add 2 GB swap for safer frontend builds.
|
||||||
|
|||||||
@@ -1618,7 +1618,7 @@ def main():
|
|||||||
global DEBUG
|
global DEBUG
|
||||||
ensure_root()
|
ensure_root()
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Install/upgrade NPM on Angie (Debian/Ubuntu) with step animation.",
|
description="Install/upgrade NPM on Angie (Debian 11 + / Ubuntu 20.04 +).",
|
||||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
||||||
)
|
)
|
||||||
parser.add_argument("--nodejs-pkg", default="nodejs", help="APT Node.js package name (e.g. nodejs, nodejs-18).")
|
parser.add_argument("--nodejs-pkg", default="nodejs", help="APT Node.js package name (e.g. nodejs, nodejs-18).")
|
||||||
@@ -1647,10 +1647,23 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
DEBUG = args.debug
|
DEBUG = args.debug
|
||||||
|
|
||||||
print("\n================== NPM + ANGIE installer ( https://gitea.linuxiarz.pl/gru/npm-angie-auto-install ) ==================")
|
print("\n================== NPM + ANGIE installer ==================")
|
||||||
print("Log mode:", "DEBUG" if DEBUG else "SIMPLE")
|
print(f"Repository: https://gitea.linuxiarz.pl/gru/npm-angie-auto-install")
|
||||||
print(f"Detected OS: {OSREL['PRETTY']} ({OSREL['ID']} {OSREL['VERSION_ID']})")
|
print(f"Script description: Auto-installer with Angie + Node.js auto-setup")
|
||||||
print("\n@linuxiarz.pl\n")
|
print(f"")
|
||||||
|
print(f"System Information:")
|
||||||
|
print(f" OS: {OSREL['PRETTY']}")
|
||||||
|
print(f" Distribution: {OSREL['ID']} {OSREL['VERSION_ID']}")
|
||||||
|
print(f" Codename: {OSREL.get('CODENAME', 'N/A')}")
|
||||||
|
print(f" Python: {sys.version.split()[0]}")
|
||||||
|
print(f"")
|
||||||
|
print(f"Installation Mode:")
|
||||||
|
print(f" Log Level: {'DEBUG (verbose)' if DEBUG else 'SIMPLE (progress only)'}")
|
||||||
|
print(f" Min Node.js: v{MIN_NODEJS_VERSION}+ (auto-installed if needed)")
|
||||||
|
print(f" Max Node.js: v{MAX_NODEJS_VERSION} (tested)")
|
||||||
|
print(f"")
|
||||||
|
print(f"Author: @linuxiarz.pl (Mateusz Gruszczyński)")
|
||||||
|
print("===========================================================\n")
|
||||||
|
|
||||||
if args.update:
|
if args.update:
|
||||||
install_logrotate_for_data_logs()
|
install_logrotate_for_data_logs()
|
||||||
|
|||||||
Reference in New Issue
Block a user