Add cp command

This commit is contained in:
sn0w 2019-01-20 02:13:51 +01:00
parent 4415a74407
commit 6495285173
No known key found for this signature in database
GPG Key ID: DDEDFB9D3FA15727
2 changed files with 31 additions and 20 deletions

View File

@ -18,7 +18,7 @@ config :pleroma, Pleroma.Repo,
# Uncomment what you need or delete it all.
#
# Want to use the config generator instead?
# Try `./pleroma mix pleroma.instance gen` and then `./pleroma cp conf/generated_config.exs config.exs`.
# Try `./pleroma mix pleroma.instance gen` and then `./pleroma cp /home/pleroma/pleroma/config/generated_config.exs config.exs`.
#
# Need some inspiration?
# Take a look at https://git.pleroma.social/pleroma/pleroma/tree/develop/config

11
pleroma
View File

@ -270,6 +270,13 @@ action__mod() {
fi
}
action__cp() {
container="$(docker_compose ps -q server)"
echo "$container:$1 -> $2"
docker cp "$container:$1" "$2"
}
#########################################################
# Help #
#########################################################
@ -313,6 +320,10 @@ Actions:
status / ps Show the current container status.
copy / cp [source] [target] Copy a file from your pc to the pleroma container.
This operation only works in one direction.
For making permanent changes to the container use custom.d.
Environment:
DEBUG can be used to modify the loglevel.
DEBUG=1 prints all commands before they are executed.