Fixing files
parent
7f6be093a7
commit
e51e935c11
|
@ -31,7 +31,7 @@ add_user_ogrepository() {
|
||||||
|
|
||||||
create_directories() {
|
create_directories() {
|
||||||
mkdir -p $INSTALL_DIR
|
mkdir -p $INSTALL_DIR
|
||||||
mkdir -p $INSTALL_DIR/images $INSTALL_DIR/images_trash/ $INSTALL_DIR/bin/ $INSTALL_DIR/etc/ $INSTALL_DIR/log/
|
mkdir -p $INSTALL_DIR/images $INSTALL_DIR/images_trash/ $INSTALL_DIR/bin/ $INSTALL_DIR/etc/ $INSTALL_DIR/log/ $INSTALL_DIR/api/
|
||||||
chown -R ogrepository:ogrepository $INSTALL_DIR
|
chown -R ogrepository:ogrepository $INSTALL_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,18 +50,17 @@ install_external_packages() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_ogrepo-api_service() {
|
install_ogrepo-api_service() {
|
||||||
cd $DOWNLOAD_DIR
|
cp -r $DOWNLOAD_DIR/installer/files/ogrepo-api.service /etc/systemd/system/ogrepo-api.service
|
||||||
cp -r installer/files/ogrepo-api.service /etc/systemd/system/ogrepo-api.service
|
|
||||||
systemctl enable --now ogrepo-api
|
systemctl enable --now ogrepo-api
|
||||||
systemctl start ogrepository
|
systemctl start ogrepository
|
||||||
}
|
}
|
||||||
|
|
||||||
install_files() {
|
install_files() {
|
||||||
cd $DOWNLOAD_DIR
|
install $DOWNLOAD_DIR/bin/* $INSTALL_DIR/bin/
|
||||||
install bin/* /opt/opengnsys/bin/
|
install $DOWNLOAD_DIR/bin/clients/* $INSTALL_DIR/bin/clients
|
||||||
install bin/clients/* /opt/opengnsys/bin/clients
|
install $DOWNLOAD_DIR/etc/* $INSTALL_DIR/etc/
|
||||||
install etc/* /opt/opengnsys/etc/
|
install $DOWNLOAD_DIR/api/* $INSTALL_DIR/api
|
||||||
install api/* /opt/opengnsys/api
|
chown -R ogrepository:ogrepository $INSTALL_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
## Main program
|
## Main program
|
||||||
|
@ -70,6 +69,7 @@ install_dependencies
|
||||||
add_user_ogrepository
|
add_user_ogrepository
|
||||||
clone_repository "$GIT_BRANCH"
|
clone_repository "$GIT_BRANCH"
|
||||||
create_directories
|
create_directories
|
||||||
|
install_files
|
||||||
install_ogrepo-api_service
|
install_ogrepo-api_service
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue