Show
Ignore:
Timestamp:
02/07/07 13:21:37 (2 years ago)
Author:
jm3
Message:

refactored perl and shell scripts so they all use the new config mechanism

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/bin/snuff-these-users.sh

    r1310 r1325  
    11#!/bin/sh 
    2 # TODO: check for minima before building indices 
     2# snuff a list of users passed in on the command line 
     3# FIXME: REMEMBER that this does NOT privatize all their links, tags, etc. -- currently, only snuffing via php does that. 
     4 
     5. env.sh # read in environment config vars  
    36 
    47if [ "$#" -lt 1 ]  
     
    1215for user in $USERS 
    1316do 
    14         mysql -u fml_fml -pfml fml_fml -B -e "update linksUsers set snuffed  = 1 where linksUsers.userid = '$user';" 
    15         mysql -u fml_fml -pfml fml_fml -B -e "update linksUsers set disabled = 1 where linksUsers.userid = '$user';" 
     17        mysql -u `get_database_user` -p`get_database_password` `get_database_name` -B -e "update linksUsers set snuffed  = 1 where linksUsers.userid = '$user';" 
     18        mysql -u `get_database_user` -p`get_database_password` `get_database_name` -B -e "update linksUsers set disabled = 1 where linksUsers.userid = '$user';" 
    1619done 
    1720 
     21exit 0 
     22