LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Scripting a Wordpress rollout - Method II

Posted 11-30-2015 at 01:50 PM by Habitual
Updated 11-30-2015 at 04:21 PM by Habitual

Now even shinier!
It's a rude and crude script, but it works for experienced admins who knows what they are doing,
and where they are doing it.

Code:
#!/bin/bash
### 11/30/2015 
### jj/Habitual

clear

do_work ()
{ 
    BASEDIR=/var/www/html
    mkdir -pv "$BASEDIR"/"$DOMAIN"/
    cp -pr /var/www/wordpress/* "$BASEDIR"/"$DOMAIN"/
    cp "$BASEDIR"/"$DOMAIN"/wp-config-sample.php
...
LQ Addict
Posted in Uncategorized
Views 1992 Comments 0 Habitual is online now
Old

Scripting a Wordpress rollout - Method I

Posted 11-27-2015 at 07:11 PM by Habitual
Updated 12-08-2015 at 01:54 PM by Habitual

We have 60 Wordpress sites to roll-out and I dislike tedious crap, so I scripted it.
# CentOS release 6.7 (Final)

Code:
#!/bin/bash
### 11/27/2015 07:03:58 PM
### jj/Habitual
### Wordpress files deployment
BASEDIR=/var/www/html

echo -n "Domain? " ; read DOMAIN

if [ -d $BASEDIR/$DOMAIN ] ; then
echo "directory exists, exiting..." ; exit 1
else
mkdir -pv "$BASEDIR"/"$DOMAIN"
...
LQ Addict
Posted in Uncategorized
Views 1827 Comments 0 Habitual is online now
Old

Download files from a list while (re)naming them at the same time

Posted 11-27-2015 at 01:27 PM by the dsc (linux-related notes)
Updated 11-27-2015 at 01:33 PM by the dsc

"wget -i" is perhaps the tool of choice to download files from a list, but it doesn't allow you to set custom file names for the individual files on the list file. So, if you want to download a bunch of podcast episodes, but would want each file to have a descriptive file name rather than "12345.mp3", it won't help you.

A simple alternative is to have a download list with the file URLS followed by the "-O" flag and desired file name, and read this file...
Member
Posted in Uncategorized
Views 2019 Comments 3 the dsc is offline
Old

Six year hiatus and Where I am Now

Posted 11-26-2015 at 11:00 AM by stureedy

It seems I've accidentally taken a six year hiatus from blog posts on Linux Questions. That was not my intention. I just have three other blogs and they have taken precedence.

So, now I'm running Slackware64 on all our servers. I retired the last Slackware 12.2 (32-bit) box earlier this year. The date was May 14th, for those keeping track.

Yesterday we retired our last Drupal 6 box and now use WordPress as our CMS. I still have a lot to learn about WordPress, but we're...
Member
Posted in Uncategorized
Views 1722 Comments 0 stureedy is offline
Old

CruxEX (CRUX) 3.2 64bit Linux live cd/usb with kernel 4.3.0 and LXDE

Posted 11-25-2015 at 12:51 PM by exton (Exton's Blog)
Updated 11-28-2015 at 06:04 AM by exton (More INFO)

CruxEX 3.2 64 bit Linux Live CD/USB is based on CRUX 3.2 (latest version, released 151123), which is all Linux enthusiasts/nerds favorite OS. (CRUX 3.2 is a lightweight Linux distribution for the x86-64 architecture targeted at experienced Linux users). CruxEX 3.2 2016 uses the LXDE Desktop environment. I have replaced the original CRUX kernel with my special kernel 4.3.0-x86_64-cruxex, with support for extra everything.

NEWS ABOUT CruxEX Build 151128
To my horror I discovered...
ExTiX Admin
Views 1926 Comments 0 exton is offline

  



All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration