-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Problem description
Termux's OpenSSH package comes bundled with $PREFIX/var/service/sshd/down and $PREFIX/var/service/ssh-agent/down files, so that both termux-services are disabled by default after OpenSSH's first install. However, the package doesn't check if the user has previously enabled any of those services during preinstall, meaning said files will get reinstalled regardless of the user's previous setting, and both termux-services will get disabled after every OpenSSH package update as a result
What steps will reproduce the bug?
- Install the openssh and termux-services packages
- Enable the sshd and/or sshd-agent services
- Upgrade the openssh package
- Both services will get disabled after the update
What is the expected behavior?
The sshd and sshd-agent services should stay enabled if the user enabled them before the upgrade
System information
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APPAPK_FILE=/data/app/~~QEpfyNnFvaUuKcsBp8HlSA==/com.termux-rl_umkV15ia37anVKlxFgg==/base.apk TERMUX_APPAPK_RELEASE=GITHUB
TERMUX_APP__APP_VERSION_CODE=1022
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.3
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APPPID=2686 TERMUX_APPSE_FILE_CONTEXT=u:object_r:app_data_file:s0:c246,c256,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.3
TERMUX__APPS_DIR=/data/user/0/com.termux/termux/apps
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUXSE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c246,c256,c512,c768 TERMUXUID=10246
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.3san.dev/termux/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
15
Kernel build information:
Linux localhost 5.4.293-qgki-gabac7951a5a1 #1 SMP PREEMPT Mon Aug 25 04:36:31 UTC 2025 aarch64 Android
Device manufacturer:
oneplus
Device model:
CPH2409
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.widget versionCode:1000