diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 6e1050a..64df660 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 diff --git a/scripts/_common.sh b/scripts/_common.sh index faab65e..24083aa 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 -} diff --git a/scripts/install b/scripts/install index 3480b9f..751ca6f 100755 --- a/scripts/install +++ b/scripts/install @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index d211280..08bb3a3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"