-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,41 @@ | ||
HOMEPATH=$HOME | ||
|
||
sudo su | ||
|
||
#if [[ `whoami` == 'root' ]]; then | ||
# Preventing from mess in current directory ;) | ||
mkdir plainDE-tmp-src | ||
cd plainDE-tmp-src | ||
|
||
|
||
# Cloning all repos | ||
git clone https://github.com/plainDE/plainPanel | ||
git clone https://github.com/plainDE/plainAbout | ||
#git clone https://github.com/plainDE/plainSettings | ||
|
||
|
||
# Creating plainDE directory | ||
mkdir /usr/share/plainDE | ||
|
||
|
||
# Compiling plainPanel | ||
cd plainPanel | ||
qmake | ||
make | ||
cp plainPanel /usr/share/plainDE/ | ||
ln -s /usr/share/plainDE/plainPanel /usr/bin/plainPanel | ||
cd .. | ||
|
||
# Preventing from mess in current directory ;) | ||
mkdir plainDE-tmp-src | ||
cd plainDE-tmp-src | ||
|
||
# Cloning all repos | ||
git clone https://github.com/plainDE/plainPanel | ||
git clone https://github.com/plainDE/plainAbout | ||
#git clone https://github.com/plainDE/plainSettings | ||
|
||
# Creating plainDE directory | ||
sudo mkdir /usr/share/plainDE | ||
|
||
# Compiling plainPanel | ||
cd plainPanel | ||
qmake | ||
make | ||
sudo cp plainPanel /usr/share/plainDE/ | ||
sudo ln -s /usr/share/plainDE/plainPanel /usr/bin/plainPanel | ||
cd .. | ||
|
||
# Compiling plainAbout | ||
cd plainAbout | ||
qmake | ||
make | ||
cp plainAbout /usr/share/plainDE/ | ||
ln -s /usr/share/plainDE/plainAbout /usr/bin/plainAbout | ||
cd .. | ||
|
||
|
||
# Compiling plainSettings | ||
# ... | ||
|
||
|
||
# Creating config | ||
cd .. | ||
echo $HOMEPATH/.config/plainDE | ||
mkdir -p $HOMEPATH/.config/plainDE | ||
cp config.json $HOMEPATH/.config/plainDE/ | ||
|
||
|
||
# Removing temprorary files | ||
rm -rf plainDE-tmp-src | ||
|
||
#else | ||
# echo 'Run it as root.' | ||
fi | ||
|
||
# Compiling plainAbout | ||
cd plainAbout | ||
qmake | ||
make | ||
sudo cp plainAbout /usr/share/plainDE/ | ||
sudo ln -s /usr/share/plainDE/plainAbout /usr/bin/plainAbout | ||
cd .. | ||
|
||
# Compiling plainSettings | ||
# ... | ||
|
||
# Creating config | ||
cd .. | ||
echo $HOMEPATH/.config/plainDE | ||
mkdir -p $HOMEPATH/.config/plainDE | ||
cp config.json $HOMEPATH/.config/plainDE/ | ||
|
||
# Removing temprorary files | ||
rm -rf plainDE-tmp-src |