Compare commits
No commits in common. "e80fd819c40dbbb0aec4e0b33c3259d8222fc026" and "9f5d4fa402d48d9e020e6206cf2561acd7c9dade" have entirely different histories.
e80fd819c4
...
9f5d4fa402
2 changed files with 3 additions and 4 deletions
2
aliases
2
aliases
|
@ -7,7 +7,7 @@ alias apv="ansible-playbook --ask-vault-pass"
|
||||||
|
|
||||||
alias fuck='sudo $(history -p \!\!)'
|
alias fuck='sudo $(history -p \!\!)'
|
||||||
alias wosis='which $(history -p \!\!)'
|
alias wosis='which $(history -p \!\!)'
|
||||||
alias fix='reset; stty sane; tput rs1; clear; echo -e "\033c"; printf "\033[3J"' # Fix terminal aber binary output
|
alias fix='reset; stty sane; tput rs1; clear; echo -e "\033c"' # Fix terminal aber binary output
|
||||||
alias fixbmi='fixtoken; ssh -Oexit svras' # Fix terminal aber binary output
|
alias fixbmi='fixtoken; ssh -Oexit svras' # Fix terminal aber binary output
|
||||||
alias fixtoken='sudo systemctl restart pcscd.service' # Fix terminal aber binary output
|
alias fixtoken='sudo systemctl restart pcscd.service' # Fix terminal aber binary output
|
||||||
# Source https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
|
# Source https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#alias deploypvp='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); CHARDET=$(ls -t /root/INSTALL/juniversalchardet*|head -n1); echo "Deploy $SETTINGS $PVP $COMCSV" "$CHARDET"; systemctl stop ${APP_NAME}.service ;"${TARGETDIR}"/at.gv.bmi.* "${TARGETDIR}"/"$(basename $CHARDET)" "${TARGETDIR}"/"$(basename $COMCSV)"; cp "${SETTINGS}" "${PVP}" "${COMCSV}" "${CHARDET}" "${TARGETDIR}"/.; systemctl restart ${APP_NAME} --no-block ;tailatpvp'
|
alias deploypvp='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); echo "Deploy $SETTINGS $PVP $COMCSV"; systemctl stop ${APP_NAME}.service ;rm ${TARGETDIR}/at.gv.bmi.* ${TARGETDIR}/$(basename $COMCSV); cp ${SETTINGS} ${PVP} ${COMCSV} ${TARGETDIR}/.; systemctl restart ${APP_NAME} --no-block ;tailatpvp'
|
||||||
#alias deploypvpandstop='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); CHARDET=$(ls -t /root/INSTALL/juniversalchardet*|head -n1); echo "Deploy $SETTINGS $PVP $COMCSV $CHARDET"; systemctl stop ${APP_NAME}.service ;rm "${TARGETDIR}"/at.gv.bmi.* "${TARGETDIR}"/"$(basename $CHARDET)" "${TARGETDIR}"/"$(basename $COMCSV)"; cp "${SETTINGS}" "${PVP}" "${COMCSV}" "${CHARDET}" ${TARGETDIR}/.'
|
alias deploypvpandstop='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); echo "Deploy $SETTINGS $PVP $COMCSV"; systemctl stop ${APP_NAME}.service ;rm ${TARGETDIR}/at.gv.bmi.* ${TARGETDIR}/$(basename $COMCSV); cp ${SETTINGS} ${PVP} ${COMCSV} ${TARGETDIR}/.'
|
||||||
alias deploypvp='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); TIKA_CORE=$(ls -t /root/INSTALL/tika-core*|head -n1); TIKA_PARS=$(ls -t /root/INSTALL/tika-parsers-standard-package*|head -n1); TIKA_PARS_TEXT=$(ls -t /root/INSTALL/tika-parser-text-module*|head -n1); echo "Deploy $SETTINGS $PVP $COMCSV" "$TIKA_CORE" "$TIKA_PARS" "$TIKA_PARS"; systemctl stop ${APP_NAME}.service ;"${TARGETDIR}"/at.gv.bmi.* "${TARGETDIR}"/"$(basename $TIKA_CORE)" "${TARGETDIR}"/"$(basename $TIKA_PARS)" "${TARGETDIR}"/"$(basename $TIKA_PARS_TEXT)" "${TARGETDIR}"/"$(basename $COMCSV)"; cp "${SETTINGS}" "${PVP}" "${COMCSV}" "${TIKA_CORE}" "${TIKA_PARS}" "${TIKA_PARS_TEXT}" "${TARGETDIR}"/.; systemctl restart ${APP_NAME} --no-block ;tailatpvp'
|
|
||||||
alias getpvpversion='for base in $(find /opt/atlassian -type d -name "WEB-INF"); do echo search in "$base"; find "${base}/lib" -name "*pvp*" -exec basename {} \; ; echo "---";done'
|
alias getpvpversion='for base in $(find /opt/atlassian -type d -name "WEB-INF"); do echo search in "$base"; find "${base}/lib" -name "*pvp*" -exec basename {} \; ; echo "---";done'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue