uawdijnntqw1x1x1
IP : 216.73.216.155
Hostname : vm5018.vps.agava.net
Kernel : Linux vm5018.vps.agava.net 3.10.0-1127.8.2.vz7.151.14 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
var
/
..
/
usr
/
share
/
libsensors4
/
..
/
wwwconfig-common
/
pgsql-nextsysid.get
/
/
# File: pgsql-nextsysid.get # Changes: # 20010224 Ola Lundqvist <opal@debian.org> # 20011022 Luca De Vitis <luca@debian.org> # Allowed reinclusion. # Changed the piped commands with a single psql command using -A -q -t # 20020116 Ola Lundqvist <opal@debian.org> # Documented the reinclusion. # 20020126 Ola Lundqvist <opal@debian.org> # Fixed getting of next system id. # 20020126 Ola Lundqvist <opal@debian.org> # Removed the reiclusion ability. It will recalculate now. # Needs: $pgsqlcmd - the base sql command. # $systemdb - the system db to use (optional) # psql # Description: Gets a password from # Sets: $nextsysid = select max(usesysid) from pg_shadow; + 1 # $status = {error, get} nextsysid= status=error error="" if $pgsqlcmd -d $systemdb -c "select max(usesysid) from pg_shadow;" > /dev/null 2>&1 ; then status=get tmpid=$($pgsqlcmd -d $systemdb -c "select max(usesysid) from pg_shadow;" | grep "^[[:space:]]*[0-9][0-9]*[[:space:]]*$") nextsysid=$((1 + $tmpid)) fi
/var/../usr/share/libsensors4/../wwwconfig-common/pgsql-nextsysid.get