Find Jobs
Hire Freelancers

reparación comando sh para hacer clone desde el git y un rebuld del apache para cambiar la carpeta public en un cpanel - 29/04/2018 11:26 EDT

$5000-15000 CLP

Cancelled
Posted almost 6 years ago

$5000-15000 CLP

Paid on delivery
necesito que este script funcione. actualmente al terminar el script tengo problemas de permisos en mi vps cpanel. 1.- dejar este scripts funcional comando que me arroja error de : chmod y cp no such file or directory y al final no levanta el #!/bin/bash CPANEL_PATH=/var/cpanel/userdata/ #obtener usuario read -p 'Usuario:' username read -p "Nombre del archivo del dominio ($CPANEL_PATH$username/[archivo]):" domainfilename read -p "Nombre del path de instalacion (/home/$username/[path]):" rootpath read -p "Nombre del rootpath/public (/home/$username/$rootpath/[path]:" publicpath read -p "Url Repositorio: " repourl domainfilename="$CPANEL_PATH$username/$domainfilename" rootpath="/home/$username/$rootpath" publicpath="$rootpath/$publicpath" if [ -r $rootpath ]; then echo "Error el directorio $rootpath ya existe!" exit 1 fi cp $domainfilename "$[login to view URL]" sed -i "s#documentroot.*#documentroot: $publicpath#" $domainfilename /scripts/rebuildhttpdconf service httpd restart #if ["$username" != ""]; #then if [ ! -d $rootpath ]; then echo "Creando el directorio $rootpath" mkdir "$rootpath" fi git clone $repourl "$rootpath" mkdir "$rootpath/logs" chmod 644 -R "$rootpath" chown $username:$username -R $rootpath chown $username:nobody $rootpath chmod 755 -R "$rootpath/*.php" chmod 755 -R "$publicpath" if [ -d "$rootpath/storage" ]; then chmod 777 -R "$rootpath/storage" fi cp -r htaccess "$rootpath/.htaccess" chmod 755 -R "$rootpath/.htaccess" #fi
Project ID: 16823647

About the project

1 proposal
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $30,000 CLP for this job
User Avatar
Hola. Puedo hacerlo. Pregúntame lo que sea.
$30,000 CLP in 1 day
5.0 (31 reviews)
5.6
5.6

About the client

Flag of CHILE
Viña del Mar, Chile
5.0
1
Member since Oct 23, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.