This commit is contained in:
@@ -238,6 +238,8 @@ trap rollback EXIT HUP INT TERM
|
||||
jwebot_log "user runtime preflight starting"
|
||||
test -x "$runtime_python"
|
||||
for path in \
|
||||
"$source_dir/VERSION" \
|
||||
"$source_dir/CHANGELOG.md" \
|
||||
"$runtime_source_dir/$ocr_script_name" \
|
||||
"$runtime_source_dir/$script_name" \
|
||||
"$runtime_source_dir/$adaptive_script_name" \
|
||||
@@ -280,6 +282,8 @@ jwebot_log "user runtime backup starting path=$backup_dir"
|
||||
install -d -m 0700 "$target_dir" "$unit_dir" "$config_dir" "$backup_dir"
|
||||
save_unit_states
|
||||
for name in \
|
||||
VERSION \
|
||||
CHANGELOG.md \
|
||||
"$ocr_script_name" \
|
||||
"$script_name" \
|
||||
"$adaptive_script_name" \
|
||||
@@ -330,6 +334,8 @@ systemctl --user stop \
|
||||
>/dev/null 2>&1 || true
|
||||
|
||||
jwebot_log "user runtime files install starting"
|
||||
install -m 0600 "$source_dir/VERSION" "$target_dir/VERSION"
|
||||
install -m 0600 "$source_dir/CHANGELOG.md" "$target_dir/CHANGELOG.md"
|
||||
install -m 0700 "$runtime_source_dir/$ocr_script_name" "$target_dir/$ocr_script_name"
|
||||
install -m 0700 "$runtime_source_dir/$script_name" "$target_dir/$script_name"
|
||||
install -m 0700 "$runtime_source_dir/$adaptive_script_name" "$target_dir/$adaptive_script_name"
|
||||
|
||||
Reference in New Issue
Block a user