Skip to content

Instantly share code, notes, and snippets.

@k4zuki02h4t4
Last active January 30, 2021 07:37
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save k4zuki02h4t4/697424982a9124c4f108e058f996d71f to your computer and use it in GitHub Desktop.
Save k4zuki02h4t4/697424982a9124c4f108e058f996d71f to your computer and use it in GitHub Desktop.
Enable Wordmove with "Local by Flywheel".
#!/usr/bin/env bash
set -xu
RUBY_VERSION=2.4.1
LIBSSL_VERSION=$(dpkg -s libssl1.0.0 | grep -i ^version | awk '{print $2;}')
apt-get update -y
apt-get upgrade -y
apt-get install -y software-properties-common python-software-properties vim build-essential git python-setuptools ruby-build libssl-dev=${LIBSSL_VERSION}
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
rbenv install ${RUBY_VERSION}
rbenv global ${RUBY_VERSION}
export RBENV_VERSION=${RUBY_VERSION}
gem install wordmove
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
wp cli update
cd /app/public
wordmove init
ln -s /app/public/Movefile /Movefile
cd /
kill -9 $(pidof /bin/bash)
@k4zuki02h4t4
Copy link
Author

How to use

1. Login to the virtual server with SSH.

2017-06-01 15 34 08

2. Execute the following command.

$ apt-get install -y curl && curl -Lk https://goo.gl/hUVwG8 | sh

@phillcoxon
Copy link

Thank you!

@LehtinenRiku
Copy link

Should this still work?

I'm getting:

The following packages have unmet dependencies:
 mysql-community-server : Depends: mysql-client (= 5.6.37-1debian8)
 mysql-server : Depends: mysql-community-server (= 5.6.39-1debian8) but 5.6.37-1debian8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

And then after apt-get -f install:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  mysql-community-server
The following packages will be upgraded:
  mysql-community-server
1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
38 not fully installed or removed.
Need to get 10.5 MB of archives.
After this operation, 28.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://repo.mysql.com/apt/debian/ jessie/mysql-5.6 mysql-community-server amd64 5.6.39-1debian8 [10.5 MB]
Fetched 10.5 MB in 1s (6651 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 16915 files and directories currently installed.)
Preparing to unpack .../mysql-community-server_5.6.39-1debian8_amd64.deb ...
invoke-rc.d: policy-rc.d denied execution of stop.
................
dpkg: error processing archive /var/cache/apt/archives/mysql-community-server_5.6.39-1debian8_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
invoke-rc.d: policy-rc.d denied execution of start.
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-community-server_5.6.39-1debian8_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment