Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F28577668
chquasselpasswd.sh.jinja
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
chquasselpasswd.sh.jinja
View Options
#!/bin/sh
# -------------------------------------------------------------
# Quassel change password wrapper
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Eglide
# Created: 2018-03-28
# License: Trivial work, not eligible to copyright
# Source file: roles/shellserver/quassel-core/files/chquasselpasswd.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
# -------------------------------------------------------------
# Configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
QUASSEL_CONFIG_DIR=/var/lib/quassel
QUASSEL_USER="
{{
quassel.user
}}
"
# -------------------------------------------------------------
# Helper methods
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
error() {
echo "$@" 1>&2;
}
getcommandname() {
basename "$0"
}
usage() {
echo "Usage: $(getcommandname)"
echo " Change the Quassel user password"
exit 64
}
# -------------------------------------------------------------
# Check arguments
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
usage
elif [ $# -gt 0 ]; then
error "$(getcommandname): illegal option -- $*"
usage
fi
# -------------------------------------------------------------
# Call quassel core
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sudo -u "$QUASSEL_USER" \
quasselcore --configdir="$QUASSEL_CONFIG_DIR" --change-userpass="$USER"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, May 15, 11:53 (23 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3689541
Default Alt Text
chquasselpasswd.sh.jinja (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment