mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Rename ynh_load_app_environment into ynh_spawn_app_shell
Co-authored-by: Florent <florent.git@zeteo.me>
This commit is contained in:
parent
21c7c41812
commit
cc167cd92c
2 changed files with 5 additions and 5 deletions
|
@ -118,11 +118,11 @@ ynh_remove_apps() {
|
|||
# | arg: -a, --app= - the app ID
|
||||
#
|
||||
# examples:
|
||||
# ynh_load_app_environment --app="APP" <<< 'echo "$USER"'
|
||||
# ynh_load_app_environment --app="APP" < /tmp/some_script.bash
|
||||
# ynh_spawn_app_shell --app="APP" <<< 'echo "$USER"'
|
||||
# ynh_spawn_app_shell --app="APP" < /tmp/some_script.bash
|
||||
#
|
||||
# Requires YunoHost version 11.0.* or higher.
|
||||
ynh_load_app_environment() {
|
||||
ynh_spawn_app_shell() {
|
||||
# Declare an array to define the options of this helper.
|
||||
local legacy_args=a
|
||||
local -A args_array=([a]=app=)
|
||||
|
|
|
@ -1653,7 +1653,7 @@ def app_shell(app):
|
|||
app -- App ID
|
||||
|
||||
"""
|
||||
subprocess.run(['/bin/bash', '-c', 'source /usr/share/yunohost/helpers && ynh_load_app_environment '+app])
|
||||
subprocess.run(['/bin/bash', '-c', 'source /usr/share/yunohost/helpers && ynh_spawn_app_shell '+app])
|
||||
|
||||
def app_register_url(app, domain, path):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue