pretendo-docker/scripts/make-pnid-dev.sh
Matthew Lopez 05a67989cd
Rewrite scripts and improve user-friendliness
- Update all of the scripts to use Bash instead of sh so I can use arrays and other bashisms
- Create a complete Bash option parsing framework to replace function-lib.sh
- Rewrite all of the scripts to use this framework
- General script user-friendliness improvements, including loading existing environment variables by default instead of always requiring them to be specified
2024-05-10 17:22:25 -04:00

14 lines
702 B
Bash
Executable File

#!/usr/bin/env bash
# shellcheck source=./internal/framework.sh
source "$(dirname "$(realpath "$0")")/internal/framework.sh"
set_description "This sets the access level of a PNID to developer, which gives it administrative permissions across the \
servers. For example, this makes the PNID's posts \"verified\" on Juxt. It should be run after creating a new PNID that \
should have administrative permissions."
add_positional_argument "dev-pnid" "dev_pnid" "The PNID to give developer access" true
parse_arguments "$@"
update_pnid_access_level_script=$(cat "$git_base_dir/scripts/run-in-container/make-pnid-dev.js")
docker compose exec account node -e "$update_pnid_access_level_script" "$dev_pnid"