@@ -1985,7 +1985,7 @@ function __unzip_metadata() {
1985
1985
if ! check_metadata_size " ${1} " ; then
1986
1986
exit 1
1987
1987
fi
1988
- if [[ " ${OSNAME} " = " macos" ]]; then
1988
+ if [[ " ${OSNAME} " = " macos" ]] || [[ " $( cat " ${DDSREM_CONFIG_DIR} /container_run_extra_parameters.txt " ) " == " true " ]] ; then
1989
1989
INFO " 使用宿主机 7z 命令解压"
1990
1990
if [ " ${1} " == " config.mp4" ] || [ " ${1} " == " config.new.mp4" ]; then
1991
1991
if [ ! -d " ${MEDIA_DIR} " ]; then
@@ -2213,7 +2213,7 @@ function unzip_appoint_xiaoya_emby_jellyfin() {
2213
2213
exit 1
2214
2214
fi
2215
2215
2216
- if [[ " ${OSNAME} " = " macos" ]]; then
2216
+ if [[ " ${OSNAME} " = " macos" ]] || [[ " $( cat " ${DDSREM_CONFIG_DIR} /container_run_extra_parameters.txt " ) " == " true " ]] ; then
2217
2217
INFO " 使用宿主机 7z 命令解压"
2218
2218
if [ ! -d " ${MEDIA_DIR} /xiaoya" ]; then
2219
2219
mkdir -p " ${MEDIA_DIR} /xiaoya"
@@ -5187,7 +5187,7 @@ function reset_script_configuration() {
5187
5187
5188
5188
function main_advanced_configuration() {
5189
5189
5190
- __container_run_extra_parameters=$( cat ${DDSREM_CONFIG_DIR} /container_run_extra_parameters.txt)
5190
+ __container_run_extra_parameters=$( cat " ${DDSREM_CONFIG_DIR} /container_run_extra_parameters.txt" )
5191
5191
if [ " ${__container_run_extra_parameters} " == " true" ]; then
5192
5192
_container_run_extra_parameters=" ${Green} 开启${Font} "
5193
5193
elif [ " ${__container_run_extra_parameters} " == " false" ]; then
@@ -5196,6 +5196,15 @@ function main_advanced_configuration() {
5196
5196
_container_run_extra_parameters=" ${Red} 错误${Font} "
5197
5197
fi
5198
5198
5199
+ __use_host_7z_command=$( cat " ${DDSREM_CONFIG_DIR} /use_host_7z_command.txt" )
5200
+ if [ " ${__use_host_7z_command} " == " true" ]; then
5201
+ _use_host_7z_command=" ${Green} 开启${Font} "
5202
+ elif [ " ${__use_host_7z_command} " == " false" ]; then
5203
+ _use_host_7z_command=" ${Red} 关闭${Font} "
5204
+ else
5205
+ _use_host_7z_command=" ${Red} 错误${Font} "
5206
+ fi
5207
+
5199
5208
__disk_capacity_detection=$( cat ${DDSREM_CONFIG_DIR} /disk_capacity_detection.txt)
5200
5209
if [ " ${__disk_capacity_detection} " == " true" ]; then
5201
5210
_disk_capacity_detection=" ${Green} 开启${Font} "
@@ -5226,9 +5235,10 @@ function main_advanced_configuration() {
5226
5235
echo -e " 6、Docker镜像源选择"
5227
5236
echo -e " 7、非可选网络模式容器默认网络模式 当前状态:${Blue}${_default_network}${Font} "
5228
5237
echo -e " 8、弃用菜单"
5238
+ echo -e " 9、开启/关闭 使用宿主机7z命令解压 当前状态:${_use_host_7z_command} "
5229
5239
echo -e " 0、返回上级"
5230
5240
echo -e " ——————————————————————————————————————————————————————————————————————————————————"
5231
- read -erp " 请输入数字 [0-8 ]:" num
5241
+ read -erp " 请输入数字 [0-9 ]:" num
5232
5242
case " $num " in
5233
5243
1)
5234
5244
clear
@@ -5289,13 +5299,22 @@ function main_advanced_configuration() {
5289
5299
clear
5290
5300
main_deprecation
5291
5301
;;
5302
+ 9)
5303
+ if [ " ${__use_host_7z_command} " == " false" ]; then
5304
+ echo ' true' > ${DDSREM_CONFIG_DIR} /use_host_7z_command.txt
5305
+ else
5306
+ echo ' false' > ${DDSREM_CONFIG_DIR} /use_host_7z_command.txt
5307
+ fi
5308
+ clear
5309
+ main_advanced_configuration
5310
+ ;;
5292
5311
0)
5293
5312
clear
5294
5313
main_return
5295
5314
;;
5296
5315
* )
5297
5316
clear
5298
- ERROR ' 请输入正确数字 [0-8 ]'
5317
+ ERROR ' 请输入正确数字 [0-9 ]'
5299
5318
main_advanced_configuration
5300
5319
;;
5301
5320
esac
@@ -5533,6 +5552,10 @@ function first_init() {
5533
5552
echo ' false' > ${DDSREM_CONFIG_DIR} /container_run_extra_parameters.txt
5534
5553
fi
5535
5554
5555
+ if [ ! -f " ${DDSREM_CONFIG_DIR} /use_host_7z_command.txt" ]; then
5556
+ echo ' false' > " ${DDSREM_CONFIG_DIR} /use_host_7z_command.txt"
5557
+ fi
5558
+
5536
5559
if [ ! -d " ${DDSREM_CONFIG_DIR} /data_crep" ]; then
5537
5560
mkdir -p " ${DDSREM_CONFIG_DIR} /data_crep"
5538
5561
fi
0 commit comments