1
0
Fork 0
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:
Salamandar 2024-01-14 22:44:20 +01:00
parent 67c87e8491
commit 3766842060
3 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ After=sound.target
[Service] [Service]
User=__APP__ User=__APP__
PermissionsStartOnly=true 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -30,7 +30,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1
ynh_script_progression --message="Install in Python environment..." --weight=30 ynh_script_progression --message="Install in Python environment..." --weight=30
_mopidy_install _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 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"

View file

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
SELF=$(basename $0) SELF=$(basename $0)
DAEMON="__FINAL_PATH__/env/bin/mopidy" DAEMON="__INSTALL_DIR__/venv/bin/mopidy"
DAEMON_USER="__APP__" DAEMON_USER="__APP__"
CONFIG_FILES="__FINAL_PATH__/__APP__.conf" CONFIG_FILES="__INSTALL_DIR__/__APP__.conf"
CMD="$DAEMON --config $CONFIG_FILES $@" CMD="$DAEMON --config $CONFIG_FILES $@"
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then