mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-12-22 01:48:47 -05:00
Add cp command
This commit is contained in:
parent
4415a74407
commit
6495285173
@ -18,7 +18,7 @@ config :pleroma, Pleroma.Repo,
|
|||||||
# Uncomment what you need or delete it all.
|
# Uncomment what you need or delete it all.
|
||||||
#
|
#
|
||||||
# Want to use the config generator instead?
|
# 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?
|
# Need some inspiration?
|
||||||
# Take a look at https://git.pleroma.social/pleroma/pleroma/tree/develop/config
|
# Take a look at https://git.pleroma.social/pleroma/pleroma/tree/develop/config
|
||||||
|
11
pleroma
11
pleroma
@ -270,6 +270,13 @@ action__mod() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
action__cp() {
|
||||||
|
container="$(docker_compose ps -q server)"
|
||||||
|
|
||||||
|
echo "$container:$1 -> $2"
|
||||||
|
docker cp "$container:$1" "$2"
|
||||||
|
}
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
# Help #
|
# Help #
|
||||||
#########################################################
|
#########################################################
|
||||||
@ -313,6 +320,10 @@ Actions:
|
|||||||
|
|
||||||
status / ps Show the current container status.
|
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:
|
Environment:
|
||||||
DEBUG can be used to modify the loglevel.
|
DEBUG can be used to modify the loglevel.
|
||||||
DEBUG=1 prints all commands before they are executed.
|
DEBUG=1 prints all commands before they are executed.
|
||||||
|
Loading…
Reference in New Issue
Block a user