Skip to content

Commit

Permalink
qzeleza#234 сохраняем конфиг shadowsocks до правок
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Jan 4, 2025
1 parent 19b008d commit 1132a16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions opt/bin/libs/vpn
Original file line number Diff line number Diff line change
Expand Up @@ -1687,8 +1687,9 @@ cmd_shadowsocks_read_new_data() {
#
# ------------------------------------------------------------------------------------------
shadowsocks_read_data() {

# устанавливаем новую конфигурацию shadowsocks
if [ -f "${SHADOWSOCKS_CONF}" ]; then
config__backup_as_opkg_if_not_exist "${SHADOWSOCKS_CONF}"
fi
cp -f "/opt/apps/${APP_NAME}/etc/conf/shadowsocks.json" "${SHADOWSOCKS_CONF}"

answer=''; read_ynq "У Вас имеется кодированная ss:// ссылка для ввода данных" answer
Expand Down
1 change: 0 additions & 1 deletion opt/bin/main/setup
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ rm_package_files(){
rm_dir /opt/etc/.kvas

# корректно ли так поступать вместо opkg remove?
rm_file /opt/etc/shadowsocks.json
rm_file /opt/etc/init.d/S22shadowsocks
} && when_ok || when_bad
fi
Expand Down

0 comments on commit 1132a16

Please sign in to comment.