mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
fix install_dir/venv
This commit is contained in:
parent
67c87e8491
commit
3766842060
3 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ After=sound.target
|
|||
[Service]
|
||||
User=__APP__
|
||||
PermissionsStartOnly=true
|
||||
ExecStart=__INSTALL_DIR__/env/bin/__APP__ --config __INSTALL_DIR__/__APP__.conf
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/__APP__ --config __INSTALL_DIR__/__APP__.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -30,7 +30,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
|||
ynh_script_progression --message="Install in Python environment..." --weight=30
|
||||
|
||||
_mopidy_install
|
||||
# patch -u $install_dir/env/lib/python$python_version/site-packages/mopidy/__main__.py -i ../sources/patches/__main__.patch --forward
|
||||
# patch -u $install_dir/venv/lib/python$python_version/site-packages/mopidy/__main__.py -i ../sources/patches/__main__.patch --forward
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
SELF=$(basename $0)
|
||||
DAEMON="__FINAL_PATH__/env/bin/mopidy"
|
||||
DAEMON="__INSTALL_DIR__/venv/bin/mopidy"
|
||||
DAEMON_USER="__APP__"
|
||||
CONFIG_FILES="__FINAL_PATH__/__APP__.conf"
|
||||
CONFIG_FILES="__INSTALL_DIR__/__APP__.conf"
|
||||
CMD="$DAEMON --config $CONFIG_FILES $@"
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue