28 lines
504 B
Bash
Executable File
28 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tmp=$(mktemp)
|
|
|
|
cd /var/www/ga
|
|
|
|
whiptail --msgbox "Linking graphs directory" 7 28
|
|
mkdir graphql
|
|
if [ $? != 0 ]; then
|
|
echo -e "\033[0;31mCould not add graphql directory"
|
|
exit 1
|
|
fi
|
|
cd graphql
|
|
ln -s ../plugins/germanairlinesva/graphql/graphs
|
|
if [ $? != 0 ]; then
|
|
echo -e "\033[0;31mCould not link graphs directory"
|
|
exit 1
|
|
fi
|
|
|
|
cd ..
|
|
|
|
whiptail --msgbox "Setting ownership" 7 21
|
|
chown www-data -R .
|
|
if [ $? != 0 ]; then
|
|
echo -e "\033[0;31mCould not set ownership to www-data"
|
|
exit 1
|
|
fi
|