@ -27,8 +27,8 @@ COPY --from=build_node_modules /app /app
COPY --from=build_node_modules /node_modules /node_modules
# Copy the needed wg-password scripts
COPY --from=build_node_modules /app/wgpw.sh /bin/wgpw
RUN chmod +x /bin/wgpw
COPY --from=build_node_modules /app/wgcli.sh /bin/wgcli
RUN chmod +x /bin/wgcli
# Install Linux packages
RUN apk add --no-cache \
@ -61,7 +61,7 @@ const readStdinPassword = () => {
// Retrieve command line arguments
const args = process.argv.slice(2); // Ignore the first two arguments
if (args.length > 2) {
throw new Error('Usage : wgpw [YOUR_PASSWORD] [HASH]');
throw new Error('Usage : wgcli [YOUR_PASSWORD] [HASH]');
}
const [password, hash] = args;
@ -2,4 +2,4 @@
# This script is intended to be run only inside a docker container, not on the development host machine
set -e
# proxy command
node /app/wgpw.mjs "$@"
node /app/wgcli.mjs "$@"