forked from th0ma7/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
headphones: update to Python 3.10 (SynoCommunity#5488)
- update to Python 3.10 - update for DSM 7 compatibility
- Loading branch information
Showing
7 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[General] | ||
config_version = 2 | ||
config_version = 6 | ||
launch_browser = 0 | ||
folder_permissions = 0777 | ||
http_port = 8181 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
PYTHON_DIR="/var/packages/python/target/bin" | ||
PYTHON_DIR="/var/packages/python310/target/bin" | ||
GIT_DIR="/var/packages/git/target/bin" | ||
PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/env/bin:${PYTHON_DIR}:${GIT_DIR}:${PATH}" | ||
PYTHON="${SYNOPKG_PKGDEST}/env/bin/python" | ||
VIRTUALENV="${PYTHON_DIR}/virtualenv" | ||
PYTHON="${SYNOPKG_PKGDEST}/env/bin/python3" | ||
HEADPHONES="${SYNOPKG_PKGDEST}/share/Headphones/Headphones.py" | ||
CFG_FILE="${SYNOPKG_PKGDEST}/var/config.ini" | ||
CFG_FILE="${SYNOPKG_PKGVAR}/config.ini" | ||
|
||
SERVICE_COMMAND="${PYTHON} ${HEADPHONES} --daemon --pidfile ${PID_FILE} --config ${CFG_FILE} --datadir ${SYNOPKG_PKGDEST}/var/" | ||
SERVICE_COMMAND="${PYTHON} ${HEADPHONES} --daemon --pidfile ${PID_FILE} --config ${CFG_FILE} --datadir ${SYNOPKG_PKGVAR}/" | ||
|
||
GROUP="sc-download" | ||
LEGACY_GROUP="sc-media" | ||
|
||
service_postinst () | ||
{ | ||
# Create a Python virtualenv | ||
${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env | ||
|
||
# If nessecary, add user also to the old group | ||
syno_user_add_to_legacy_group "${EFF_USER}" "${USER}" "${LEGACY_GROUP}" | ||
|
||
# Remove legacy user | ||
# Commands of busybox from spk/python | ||
delgroup "${USER}" "users" | ||
deluser "${USER}" | ||
install_python_virtualenv | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[{ | ||
"step_title": "Attention! DSM6 Permissions", | ||
"step_title": "DSM Permissions", | ||
"items": [{ | ||
"desc": "Permissions for all download-related packages are managed with the group <b>'sc-download'</b> in DSM.<br>The group 'users' is no longer used as of DSM 6.<br>Package user will not appear on most UI settings.<br>Please read <a <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
"desc": "Permissions for download-related packages are managed with the group <b>'sc-download'</b> in DSM.<br>Internal package user will not appear on most UI settings.<br>Please read <a <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[{ | ||
"step_title": "Attention! Permissions DSM", | ||
"step_title": "Permissions DSM", | ||
"items": [{ | ||
"desc": "Les permissions de toutes les applications de téléchargement sont gérées par le groupe <b>'sc-download'</b> dans DSM.<br>Le groupe 'users' n'est plus utilisé depuis DSM 6.<br>L'utilisateur spécifique à l'application n'apparaît plus dans la plupart des interfaces de configuration.<br>Merci de lire <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> pour plus de détails." | ||
"desc": "Les permissions des applications de téléchargement sont gérées par le groupe <b>'sc-download'</b> dans DSM.<br>L'utilisateur spécifique à l'application n'apparaît plus dans la plupart des interfaces de configuration.<br>Merci de lire <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> pour plus de détails." | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[{ | ||
"step_title": "Attention! DSM6 Permissions", | ||
"step_title": "DSM Permissions", | ||
"items": [{ | ||
"desc": "Permissions for all download-related packages are managed with the group <b>'sc-download'</b> in DSM.<br>The group 'users' is no longer used as of DSM 6.<br>Package user will not appear on most UI settings.<br>Please read <a <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
"desc": "Permissions for download-related packages are managed with the group <b>'sc-download'</b> in DSM.<br>Internal package user will not appear on most UI settings.<br>Please read <a <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[{ | ||
"step_title": "Attention! Permissions DSM", | ||
"step_title": "Permissions DSM", | ||
"items": [{ | ||
"desc": "Les permissions de toutes les applications de téléchargement sont gérées par le groupe <b>'sc-download'</b> dans DSM.<br>Le groupe 'users' n'est plus utilisé depuis DSM 6.<br>L'utilisateur spécifique à l'application n'apparaît plus dans la plupart des interfaces de configuration.<br>Merci de lire <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> pour plus de détails." | ||
"desc": "Les permissions des applications de téléchargement sont gérées par le groupe <b>'sc-download'</b> dans DSM.<br>L'utilisateur spécifique à l'application n'apparaît plus dans la plupart des interfaces de configuration.<br>Merci de lire <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> pour plus de détails." | ||
}] | ||
}] |