VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/lgw_postinstall.sh@ 87093

Last change on this file since 87093 was 86471, checked in by vboxsync, 4 years ago

OCI: (bugref:9469) Fixed network interface parsing in local bridge script.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 16.9 KB
Line 
1#!/bin/bash
2## @file
3# Post installation script template for local gateway image.
4#
5# Note! This script expects to be running chrooted (inside new sytem).
6#
7
8#
9# Copyright (C) 2020 Oracle Corporation
10#
11# This file is part of VirtualBox Open Source Edition (OSE), as
12# available from http://www.virtualbox.org. This file is free software;
13# you can redistribute it and/or modify it under the terms of the GNU
14# General Public License (GPL) as published by the Free Software
15# Foundation, in version 2 as it comes in the "COPYING" file of the
16# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18#
19
20
21#
22# Globals.
23#
24MY_TARGET="/mnt/sysimage"
25MY_LOGFILE="${MY_TARGET}/var/log/vboxpostinstall.log"
26MY_CHROOT_CDROM="/cdrom"
27MY_CDROM_NOCHROOT="/tmp/vboxcdrom"
28MY_EXITCODE=0
29MY_DEBUG="" # "yes"
30
31@@VBOX_COND_HAS_PROXY@@
32PROXY="@@VBOX_INSERT_PROXY@@"
33export http_proxy="${PROXY}"
34export https_proxy="${PROXY}"
35echo "HTTP proxy is ${http_proxy}" | tee -a "${MY_LOGFILE}"
36echo "HTTPS proxy is ${https_proxy}" | tee -a "${MY_LOGFILE}"
37@@VBOX_COND_END@@
38
39#
40# Do we need to exec using target bash? If so, we must do that early
41# or ash will bark 'bad substitution' and fail.
42#
43if [ "$1" = "--need-target-bash" ]; then
44 # Try figure out which directories we might need in the library path.
45 if [ -z "${LD_LIBRARY_PATH}" ]; then
46 LD_LIBRARY_PATH="${MY_TARGET}/lib"
47 fi
48 for x in \
49 ${MY_TARGET}/lib \
50 ${MY_TARGET}/usr/lib \
51 ${MY_TARGET}/lib/*linux-gnu/ \
52 ${MY_TARGET}/lib32/ \
53 ${MY_TARGET}/lib64/ \
54 ${MY_TARGET}/usr/lib/*linux-gnu/ \
55 ${MY_TARGET}/usr/lib32/ \
56 ${MY_TARGET}/usr/lib64/ \
57 ;
58 do
59 if [ -e "$x" ]; then LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${x}"; fi;
60 done
61 export LD_LIBRARY_PATH
62
63 # Append target bin directories to the PATH as busybox may not have tee.
64 PATH="${PATH}:${MY_TARGET}/bin:${MY_TARGET}/usr/bin:${MY_TARGET}/sbin:${MY_TARGET}/usr/sbin"
65 export PATH
66
67 # Drop the --need-target-bash argument and re-exec.
68 shift
69 echo "******************************************************************************" >> "${MY_LOGFILE}"
70 echo "** Relaunching using ${MY_TARGET}/bin/bash $0 $*" >> "${MY_LOGFILE}"
71 echo "** LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${MY_LOGFILE}"
72 echo "** PATH=${PATH}" >> "${MY_LOGFILE}"
73 exec "${MY_TARGET}/bin/bash" "$0" "$@"
74fi
75
76
77#
78# Commands.
79#
80
81# Logs execution of a command.
82log_command()
83{
84 echo "--------------------------------------------------" >> "${MY_LOGFILE}"
85 echo "** Date: `date -R`" >> "${MY_LOGFILE}"
86 echo "** Executing: $*" >> "${MY_LOGFILE}"
87 "$@" 2>&1 | tee -a "${MY_LOGFILE}"
88 MY_TMP_EXITCODE="${PIPESTATUS[0]}" # bashism - whatever.
89 if [ "${MY_TMP_EXITCODE}" != "0" ]; then
90 if [ "${MY_TMP_EXITCODE}" != "${MY_IGNORE_EXITCODE}" ]; then
91 echo "** exit code: ${MY_TMP_EXITCODE}" | tee -a "${MY_LOGFILE}"
92 MY_EXITCODE=1;
93 else
94 echo "** exit code: ${MY_TMP_EXITCODE} (ignored)" | tee -a "${MY_LOGFILE}"
95 fi
96 fi
97}
98
99# Logs execution of a command inside the target.
100log_command_in_target()
101{
102 log_command chroot "${MY_TARGET}" "$@"
103}
104
105# Checks if $1 is a command on the PATH inside the target jail.
106chroot_which()
107{
108 for dir in /bin /usr/bin /sbin /usr/sbin;
109 do
110 if [ -x "${MY_TARGET}${dir}/$1" ]; then
111 return 0;
112 fi
113 done
114 return 1;
115}
116
117#
118# Log header.
119#
120echo "******************************************************************************" >> "${MY_LOGFILE}"
121echo "** VirtualBox Unattended Guest Installation - Late installation actions" >> "${MY_LOGFILE}"
122echo "** Date: `date -R`" >> "${MY_LOGFILE}"
123echo "** Started: $0 $*" >> "${MY_LOGFILE}"
124
125
126#
127# We want the ISO available inside the target jail.
128#
129if [ -d "${MY_TARGET}${MY_CHROOT_CDROM}" ]; then
130 MY_RMDIR_TARGET_CDROM=
131else
132 MY_RMDIR_TARGET_CDROM="yes"
133 log_command mkdir -p ${MY_TARGET}${MY_CHROOT_CDROM}
134fi
135
136if [ -f "${MY_TARGET}${MY_CHROOT_CDROM}/vboxpostinstall.sh" ]; then
137 MY_UNMOUNT_TARGET_CDROM=
138 echo "** binding cdrom into jail: already done" | tee -a "${MY_LOGFILE}"
139else
140 MY_UNMOUNT_TARGET_CDROM="yes"
141 log_command mount -o bind "${MY_CDROM_NOCHROOT}" "${MY_TARGET}${MY_CHROOT_CDROM}"
142 if [ -f "${MY_TARGET}${MY_CHROOT_CDROM}/vboxpostinstall.sh" ]; then
143 echo "** binding cdrom into jail: success" | tee -a "${MY_LOGFILE}"
144 else
145 echo "** binding cdrom into jail: failed" | tee -a "${MY_LOGFILE}"
146 fi
147 if [ "${MY_DEBUG}" = "yes" ]; then
148 log_command find "${MY_TARGET}${MY_CHROOT_CDROM}"
149 fi
150fi
151
152
153#
154# Debug
155#
156if [ "${MY_DEBUG}" = "yes" ]; then
157 log_command id
158 log_command ps
159 log_command ps auxwwwf
160 log_command env
161 log_command df
162 log_command mount
163 log_command_in_target df
164 log_command_in_target mount
165 #log_command find /
166 MY_EXITCODE=0
167fi
168
169
170#
171# Proxy hack for yum
172#
173@@VBOX_COND_HAS_PROXY@@
174echo "" >> "${MY_TARGET}/etc/yum.conf"
175echo "proxy=@@VBOX_INSERT_PROXY@@" >> "${MY_TARGET}/etc/yum.conf"
176@@VBOX_COND_END@@
177
178#
179# Packages needed for GAs.
180#
181echo "--------------------------------------------------" >> "${MY_LOGFILE}"
182echo '** Installing packages for building kernel modules...' | tee -a "${MY_LOGFILE}"
183log_command_in_target yum -y install "kernel-devel-$(uname -r)"
184log_command_in_target yum -y install "kernel-headers-$(uname -r)"
185log_command_in_target yum -y install gcc
186log_command_in_target yum -y install binutils
187log_command_in_target yum -y install make
188log_command_in_target yum -y install dkms
189log_command_in_target yum -y install make
190log_command_in_target yum -y install bzip2
191log_command_in_target yum -y install perl
192
193
194#
195# GAs
196#
197@@VBOX_COND_IS_INSTALLING_ADDITIONS@@
198echo "--------------------------------------------------" >> "${MY_LOGFILE}"
199echo '** Installing VirtualBox Guest Additions...' | tee -a "${MY_LOGFILE}"
200MY_IGNORE_EXITCODE=2 # returned if modules already loaded and reboot required.
201log_command_in_target /bin/bash "${MY_CHROOT_CDROM}/vboxadditions/VBoxLinuxAdditions.run" --nox11
202log_command_in_target /bin/bash -c "udevadm control --reload-rules" # GAs doesn't yet do this.
203log_command_in_target /bin/bash -c "udevadm trigger" # (ditto)
204MY_IGNORE_EXITCODE=
205log_command_in_target usermod -a -G vboxsf "@@VBOX_INSERT_USER_LOGIN@@"
206@@VBOX_COND_END@@
207
208#
209# Local gateway support
210#
211log_command_in_target yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
212#log_command_in_target yum -y update
213log_command_in_target yum -y install openvpn
214log_command_in_target yum -y install connect-proxy
215log_command_in_target usermod -a -G wheel "@@VBOX_INSERT_USER_LOGIN@@"
216
217echo "** Creating ${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/cloud-bridge.conf..." | tee -a "${MY_LOGFILE}"
218cat >"${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/cloud-bridge.conf" <<'EOT'
219# port 1194
220# proto udp
221port 443
222proto tcp-server
223dev tap0
224secret static.key
225keepalive 10 120
226compress lz4-v2
227push "compress lz4-v2"
228persist-key
229persist-tun
230status /var/log/openvpn-status.log
231log-append /var/log/openvpn.log
232verb 3
233EOT
234
235echo "** Creating ${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/cloud-bridge.sh..." | tee -a "${MY_LOGFILE}"
236cat >"${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/cloud-bridge.sh" <<'EOT'
237# Initialize variables
238br="br0"
239tap="tap0"
240vnic1=$1
241vnic2=$2
242vnic2_gw=$3
243target_mac=$4
244
245# Install openvpn if it is missing
246if ! yum list installed openvpn; then
247 sudo yum -y install openvpn
248fi
249
250# Let openvpn traffic through Linux firewall
251#sudo iptables -I INPUT -p udp --dport 1194 -j ACCEPT
252sudo iptables -I INPUT -p tcp --dport 443 -j ACCEPT
253
254# Switch to secondary VNIC
255sudo ip route change default via $vnic2_gw dev $vnic2
256sudo ip link set dev $vnic1 down
257
258# Bring up the cloud end of the tunnel
259sudo openvpn --config cloud-bridge.conf --daemon
260
261# Use target MAC for primary VNIC
262sudo ip link set dev $vnic1 address $target_mac
263
264# Bridge tap and primary VNIC
265sudo ip link add name $br type bridge
266sudo ip link set dev $vnic1 master $br
267sudo ip link set dev $tap master $br
268
269# Bring up all interfaces
270sudo ip link set dev $tap up
271sudo ip link set dev $vnic1 up
272sudo ip link set dev $br up
273EOT
274log_command chmod +x "${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/cloud-bridge.sh"
275
276echo "** Creating ${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/local-bridge.conf..." | tee -a "${MY_LOGFILE}"
277cat >"${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/local-bridge.conf" <<'EOT'
278dev tap0
279# proto udp
280# port 1194
281proto tcp-client
282port 443
283persist-key
284persist-tun
285secret static.key
286compress lz4-v2
287log-append /var/log/openvpn.log
288verb 3
289EOT
290
291echo "** Creating ${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/local-bridge.sh..." | tee -a "${MY_LOGFILE}"
292cat >"${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/local-bridge.sh" <<'EOT'
293echo Complete command line for debugging purposes:
294echo $0 $*
295
296# Make sure we are at home
297cd ~
298
299# Initialize variables
300user=opc
301cbr_ip1=$1
302cbr_ip2=$2
303target_mac=$3
304br="br0"
305tap="tap0"
306eth="enp0s8"
307
308proxy1_ssh=""
309proxy2_ssh=""
310proxy2_vpn=""
311case $4 in
312 HTTP | HTTPS)
313 proxy1_ssh="connect-proxy -w 30 -H $5:$6 %h %p"
314 ;;
315 SOCKS | SOCKS5)
316 proxy1_ssh="connect-proxy -w 30 -S $5:$6 %h %p"
317 ;;
318 SOCKS4)
319 proxy1_ssh="connect-proxy -w 30 -4 -S $5:$6 %h %p"
320 ;;
321esac
322case $7 in
323 HTTP | HTTPS)
324 proxy2_ssh="connect-proxy -w 30 -H $8:$9 %h %p"
325 proxy2_vpn="--http-proxy $8 $9"
326 ;;
327 SOCKS | SOCKS5)
328 proxy2_ssh="connect-proxy -w 30 -S $8:$9 %h %p"
329 proxy2_vpn="--socks-proxy $8 $9"
330 ;;
331 SOCKS4)
332 proxy2_ssh="connect-proxy -w 30 -4 -S $8:$9 %h %p"
333 proxy2_vpn="--socks-proxy $8 $9"
334 ;;
335esac
336
337# Generate pre-shared secret and share it with the server, bypassing proxy if necessary
338/usr/sbin/openvpn --genkey --secret static.key
339for i in 1 2 3 4
340do
341 # Go via proxy if set
342 scp ${proxy1_ssh:+ -o ProxyCommand="$proxy1_ssh"} static.key cloud-bridge.conf cloud-bridge.sh $user@$cbr_ip1:
343 if [ $? -eq 0 ]; then break; fi; sleep 15
344 # Go direct even if proxy is set
345 scp static.key cloud-bridge.conf cloud-bridge.sh $user@$cbr_ip1:
346 if [ $? -eq 0 ]; then proxy1_ssh=""; break; fi; sleep 15
347done
348
349# Get metadata info from the cloud bridge
350for i in 1 2 3 4; do metadata=$(ssh ${proxy1_ssh:+ -o ProxyCommand="$proxy1_ssh"} $user@$cbr_ip1 sudo oci-network-config) && break || sleep 15; done
351
352# Extract primary VNIC info
353vnic1_md=`echo "$metadata"|grep -E "\sUP\s"`
354vnic1_dev=`echo $vnic1_md|cut -d ' ' -f 8`
355vnic1_mac=`echo $vnic1_md|cut -d ' ' -f 12`
356# Extract secondary VNIC info
357vnic2_md=`echo "$metadata"|grep -E "\sDOWN\s"`
358vnic2_dev=`echo $vnic2_md|cut -d ' ' -f 8`
359vnic2_gw=`echo $vnic2_md|cut -d ' ' -f 5`
360
361# Configure secondary VNIC
362ssh ${proxy1_ssh:+ -o ProxyCommand="$proxy1_ssh"} $user@$cbr_ip1 sudo oci-network-config -c
363
364# Bring up the cloud bridge
365ssh ${proxy2_ssh:+ -o ProxyCommand="$proxy2_ssh"} $user@$cbr_ip2 /bin/sh -x cloud-bridge.sh $vnic1_dev $vnic2_dev $vnic2_gw $target_mac
366if [ $? -eq 0 ]
367then
368 # SSH was able to reach cloud via proxy, establish a tunnel via proxy as well
369 sudo /usr/sbin/openvpn $proxy2_vpn --config local-bridge.conf --daemon --remote $cbr_ip2
370else
371 # Retry without proxy
372 ssh $user@$cbr_ip2 /bin/sh -x cloud-bridge.sh $vnic1_dev $vnic2_dev $vnic2_gw $target_mac
373 # Establish a tunnel to the cloud bridge
374 sudo /usr/sbin/openvpn --config local-bridge.conf --daemon --remote $cbr_ip2
375fi
376
377# Bridge the openvpn tap device and the local Ethernet interface
378sudo ip link set dev $eth down
379sudo ip link add name $br type bridge
380sudo ip link set dev $eth master $br
381sudo ip link set dev $tap master $br
382
383# Bring up all interfaces
384sudo ip link set dev $tap up
385sudo ip link set dev $eth up
386sudo ip link set dev $br up
387EOT
388log_command chmod +x "${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/local-bridge.sh"
389
390echo "** Creating ${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/.ssh/config..." | tee -a "${MY_LOGFILE}"
391log_command mkdir "${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/.ssh"
392cat >"${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/.ssh/config" <<'EOT'
393Host *
394 StrictHostKeyChecking no
395EOT
396log_command chmod 400 "${MY_TARGET}/home/@@VBOX_INSERT_USER_LOGIN@@/.ssh/config"
397
398log_command_in_target chown -R @@VBOX_INSERT_USER_LOGIN@@:@@VBOX_INSERT_USER_LOGIN@@ "/home/@@VBOX_INSERT_USER_LOGIN@@"
399
400echo '** Creating /etc/systemd/system/keygen.service...' | tee -a "${MY_LOGFILE}"
401cat >"${MY_TARGET}/etc/systemd/system/keygen.service" <<'EOT'
402[Unit]
403Description=Boot-time ssh key pair generator
404After=vboxadd.service
405
406[Service]
407ExecStart=/bin/sh -c 'su - vbox -c "cat /dev/zero | ssh-keygen -q -N \\\"\\\""'
408ExecStartPost=/bin/sh -c 'VBoxControl guestproperty set "/VirtualBox/Gateway/PublicKey" "`cat ~vbox/.ssh/id_rsa.pub`" --flags TRANSIENT'
409Type=oneshot
410RemainAfterExit=yes
411
412[Install]
413WantedBy=multi-user.target
414EOT
415log_command chmod 644 "${MY_TARGET}/etc/systemd/system/keygen.service"
416log_command_in_target systemctl enable keygen.service
417
418echo '** Creating /etc/sudoers.d/020_vbox_sudo...' | tee -a "${MY_LOGFILE}"
419echo "@@VBOX_INSERT_USER_LOGIN@@ ALL=(ALL) NOPASSWD: ALL" > "${MY_TARGET}/etc/sudoers.d/020_vbox_sudo"
420
421#
422# Test Execution Service.
423#
424@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@
425echo "--------------------------------------------------" >> "${MY_LOGFILE}"
426echo '** Installing Test Execution Service...' | tee -a "${MY_LOGFILE}"
427log_command_in_target test "${MY_CHROOT_CDROM}/vboxvalidationkit/linux/@@VBOX_INSERT_OS_ARCH@@/TestExecService"
428log_command mkdir -p "${MY_TARGET}/opt/validationkit" "${MY_TARGET}/media/cdrom"
429log_command cp -R ${MY_CDROM_NOCHROOT}/vboxvalidationkit/* "${MY_TARGET}/opt/validationkit/"
430log_command chmod -R u+rw,a+xr "${MY_TARGET}/opt/validationkit/"
431if [ -e "${MY_TARGET}/usr/bin/chcon" -o -e "${MY_TARGET}/bin/chcon" -o -e "${MY_TARGET}/usr/sbin/chcon" -o -e "${MY_TARGET}/sbin/chcon" ]; then
432 MY_IGNORE_EXITCODE=1
433 log_command_in_target chcon -R -t usr_t "/opt/validationkit/"
434 MY_IGNORE_EXITCODE=
435fi
436
437# systemd service config:
438MY_UNIT_PATH="${MY_TARGET}/lib/systemd/system"
439test -d "${MY_TARGET}/usr/lib/systemd/system" && MY_UNIT_PATH="${MY_TARGET}/usr/lib/systemd/system"
440if [ -d "${MY_UNIT_PATH}" ]; then
441 log_command cp "${MY_TARGET}/opt/validationkit/linux/vboxtxs.service" "${MY_UNIT_PATH}/vboxtxs.service"
442 log_command chmod 644 "${MY_UNIT_PATH}/vboxtxs.service"
443 log_command_in_target systemctl -q enable vboxtxs
444
445# System V like:
446elif [ -e "${MY_TARGET}/etc/init.d/" ]; then
447
448 # Install the script. On rhel6 scripts are under /etc/rc.d/ with /etc/init.d and /etc/rc?.d being symlinks.
449 if [ -d "${MY_TARGET}/etc/rc.d/init.d/" ]; then
450 MY_INIT_D_PARENT_PATH="${MY_TARGET}/etc/rc.d"
451 log_command ln -s "../../../opt/validationkit/linux/vboxtxs" "${MY_INIT_D_PARENT_PATH}/init.d/"
452 else
453 MY_INIT_D_PARENT_PATH="${MY_TARGET}/etc"
454 log_command ln -s "../../opt/validationkit/linux/vboxtxs" "${MY_INIT_D_PARENT_PATH}/init.d/"
455 fi
456
457 # Use runlevel management script if found.
458 if chroot_which chkconfig; then # Redhat based sysvinit systems
459 log_command_in_target chkconfig --add vboxtxs
460 elif chroot_which insserv; then # SUSE-based sysvinit systems
461 log_command_in_target insserv vboxtxs
462 elif chroot_which update-rc.d; then # Debian/Ubuntu-based systems
463 log_command_in_target update-rc.d vboxtxs defaults
464 elif chroot_which rc-update; then # Gentoo Linux
465 log_command_in_target rc-update add vboxtxs default
466 # Fall back on hardcoded symlinking.
467 else
468 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc0.d/K65vboxtxs"
469 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc1.d/K65vboxtxs"
470 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc6.d/K65vboxtxs"
471 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc2.d/S35vboxtxs"
472 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc3.d/S35vboxtxs"
473 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc4.d/S35vboxtxs"
474 log_command ln -s "../init.d/vboxtxs" "${MY_INIT_D_PARENT_PATH}/rc5.d/S35vboxtxs"
475 fi
476else
477 echo "** error: Unknown init script system." | tee -a "${MY_LOGFILE}"
478fi
479
480@@VBOX_COND_END@@
481
482
483#
484# Run user command.
485#
486@@VBOX_COND_HAS_POST_INSTALL_COMMAND@@
487echo '** Running custom user command ...' | tee -a "${MY_LOGFILE}"
488log_command @@VBOX_INSERT_POST_INSTALL_COMMAND@@
489@@VBOX_COND_END@@
490
491
492#
493# Unmount the cdrom if we bound it and clean up the chroot if we set it up.
494#
495if [ -n "${MY_UNMOUNT_TARGET_CDROM}" ]; then
496 echo "** unbinding cdrom from jail..." | tee -a "${MY_LOGFILE}"
497 log_command umount "${MY_TARGET}${MY_CHROOT_CDROM}"
498fi
499
500if [ -n "${MY_RMDIR_TARGET_CDROM}" ]; then
501 log_command rmdir "${MY_TARGET}${MY_CHROOT_CDROM}"
502fi
503
504
505#
506# Log footer.
507#
508echo "******************************************************************************" >> "${MY_LOGFILE}"
509echo "** Date: `date -R`" >> "${MY_LOGFILE}"
510echo "** Final exit code: ${MY_EXITCODE}" >> "${MY_LOGFILE}"
511echo "******************************************************************************" >> "${MY_LOGFILE}"
512
513exit ${MY_EXITCODE}
514
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette