Skip to content

Commit

Permalink
update to version 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuehlbeyer committed Dec 2, 2021
1 parent 4ff422f commit 63703b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bundle/install_pgoperate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,17 @@ echo -e "\n>>> INSTALLATION STEP: Add aliases to \$PGBASENV_BASE/etc/pgbasenv_st
sed -i "/# pgOperate/d" $PGBASENV_BASE/etc/pgbasenv_standard.conf
sed -i "/alias pgoperate=.*/d" $PGBASENV_BASE/etc/pgbasenv_standard.conf
sed -i "/alias cdbase=.*/d" $PGBASENV_BASE/etc/pgbasenv_standard.conf
sed -i "/alias cdpo=.*/d" $PGBASENV_BASE/etc/pgbasenv_standard.conf
sed -i "/alias cdpo.etc=.*/d" $PGBASENV_BASE/etc/pgbasenv_standard.conf

echo "
# pgOperate
alias pgoperate=\"\$PGOPERATE_BASE/bin/pgoperate\"
alias cdbase='eval \"cd \$(test -f \$PGOPERATE_BASE/etc/parameters_\${PGBASENV_ALIAS}.conf && grep \"^PGSQL_BASE\" \$PGOPERATE_BASE/etc/parameters_\${PGBASENV_ALIAS}.conf | cut -d\"=\" -f2 || echo \".\")\"'
alias cdpo='cd \$PGOPERATE_BASE'
alias cdpo.etc='cd \$PGOPERATE_BASE/etc'
" >> $PGBASENV_BASE/etc/pgbasenv_standard.conf
alias

echo -e "\n>>> INSTALLATION STEP: Update \$PGOPERATE_BASE/bin/root.sh with current username.\n"
sed -i "s/^USER=.*/USER=$(id -un)/g" $PGOPERATE_BASE/bin/root.sh
Expand Down
Binary file not shown.

0 comments on commit 63703b8

Please sign in to comment.