Welcome to Centmin Mod Community
Become a Member

[Solved] Accidentally added "pure-pw userdel" into /root/tools/wp_updater_${vhostname}.sh

Discussion in 'Bug Reports' started by jcat, Feb 18, 2017.

  1. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:41 AM
    I noticed a few people complaining of their FTP login randomly failing, I've had to manually add the user back, I then recently noticed this in:

    /root/tools/wp_updater_${vhostname}.sh

    Code:
    pure-pw userdel $ftpuser >/dev/null 2>&1
    Was this an accident? I see the commit here:

    update inc/wpsetup.inc add pure-ftpd user removal to wordpress uninst… · centminmod/centminmod@ec36802 · GitHub


    but shouldn't this of been added to

    /root/tools/wp_uninstall_${vhostname}.sh
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    9:41 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    whoops, nice catch - definitely a bug which just fixed in updated 123.09beta01 :D
     
  3. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    7:41 AM
    Thanks!
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    9:41 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You should be able to mass correct existing /root/tools/wp_updater_yourdomains.sh scripts using this single command line

    Code (Text):
    for f in $(find /root/tools/ -type f -name "wp_updater_*"); do grep -w 'pure-pw' $f && sed -i "/pure-pw/d" $f; done