Merge pull request #13 from YunoHost-Apps/updates

Updates
This commit is contained in:
Jens Diemer 2022-08-23 17:49:54 +02:00 committed by GitHub
commit 5b4810a19b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 16 deletions

View file

@ -27,6 +27,11 @@ jobs:
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/cache@v2
with:
path: ~/.cache/
key: dot-cache-files
- name: 'Install package'
run: |
pip3 install poetry

View file

@ -85,17 +85,3 @@ ynh_redis_remove_db() {
redis-cli -n "$db" flushall
}
#=================================================
# Execute a command as another user
# usage: ynh_exec_as USER COMMAND [ARG ...]
ynh_exec_as() {
local USER=$1
shift 1
if [[ $USER = $(whoami) ]]; then
eval "$@"
else
sudo -u "$USER" "$@"
fi
}

View file

@ -230,7 +230,7 @@ fi
#=================================================
# Start the app server via systemd
#=================================================
ynh_script_progression --message="Starting django_example_ynh's services..." --weight=5
ynh_script_progression --message="Starting the application..." --weight=5
ynh_systemd_action --service_name="$app" --action="start"

View file

@ -209,7 +209,7 @@ chmod o-rwx "$final_path"
#=================================================
# Start the app server via systemd
#=================================================
ynh_script_progression --message="Starting django_example_ynh's services..." --weight=5
ynh_script_progression --message="Starting the application..." --weight=5
ynh_systemd_action --service_name="$app" --action="start"